bug fix storing images

This commit is contained in:
otsmr 2025-06-20 21:21:34 +02:00
parent bb2d16f620
commit 385cf11654

View file

@ -63,8 +63,8 @@ class SaveToGalleryButtonState extends State<SaveToGalleryButton> {
memoryPath = join(memoryPath, token); memoryPath = join(memoryPath, token);
} }
final user = await getUser(); final user = await getUser();
if (user != null) return; if (user == null) return;
bool storeToGallery = user!.storeMediaFilesInGallery; bool storeToGallery = user.storeMediaFilesInGallery;
if (widget.videoFilePath != null) { if (widget.videoFilePath != null) {
memoryPath += ".mp4"; memoryPath += ".mp4";