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";