Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: delete file from upload locks db if not found

Prateek Sunal0a2bff67bfb1
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart
index 48abdcfe65..7c411d2130 100644
--- a/mobile/apps/photos/lib/services/video_preview_service.dart
+++ b/mobile/apps/photos/lib/services/video_preview_service.dart
@@ -972,7 +972,12 @@ class VideoPreviewService {
.getAnyUploadedFile(queueFileId)
.catchError((e) => null);
- if (queueFile == null) continue;
+ if (queueFile == null) {
+ await UploadLocksDB.instance
+ .removeFromStreamQueue(queueFileId)
+ .catchError((e) {});
+ continue;
+ }
_items[queueFile.uploadedFileID!] = PreviewItem(
status: PreviewItemStatus.inQueue,