From 618d4a3fb3b8a51bb22d5c74bf0cd5e550aeac36 Mon Sep 17 00:00:00 2001 From: otsmr Date: Mon, 15 Dec 2025 20:56:18 +0100 Subject: [PATCH] fix for scanning himself --- .../main_camera_controller.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/src/views/camera/camera_preview_components/main_camera_controller.dart b/lib/src/views/camera/camera_preview_components/main_camera_controller.dart index 9092292..6f050fe 100644 --- a/lib/src/views/camera/camera_preview_components/main_camera_controller.dart +++ b/lib/src/views/camera/camera_preview_components/main_camera_controller.dart @@ -220,10 +220,12 @@ class MainCameraController { } } } else { - if (scannedNewProfiles[profile.userId.toInt()] == null) { - scannedNewProfiles[profile.userId.toInt()] = ScannedNewProfile( - profile: profile, - ); + if (profile.username != gUser.username) { + if (scannedNewProfiles[profile.userId.toInt()] == null) { + scannedNewProfiles[profile.userId.toInt()] = ScannedNewProfile( + profile: profile, + ); + } } } }