From 385cf116549b50d2acad0c2d58f7a5a83d5d5531 Mon Sep 17 00:00:00 2001 From: otsmr Date: Fri, 20 Jun 2025 21:21:34 +0200 Subject: [PATCH] bug fix storing images --- .../camera/camera_preview_components/save_to_gallery.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/views/camera/camera_preview_components/save_to_gallery.dart b/lib/src/views/camera/camera_preview_components/save_to_gallery.dart index 1d55386..ac89da1 100644 --- a/lib/src/views/camera/camera_preview_components/save_to_gallery.dart +++ b/lib/src/views/camera/camera_preview_components/save_to_gallery.dart @@ -63,8 +63,8 @@ class SaveToGalleryButtonState extends State { memoryPath = join(memoryPath, token); } final user = await getUser(); - if (user != null) return; - bool storeToGallery = user!.storeMediaFilesInGallery; + if (user == null) return; + bool storeToGallery = user.storeMediaFilesInGallery; if (widget.videoFilePath != null) { memoryPath += ".mp4";