Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Remove obsolete code

ashilkn584a37d2a20f
diff --git a/mobile/lib/services/favorites_service.dart b/mobile/lib/services/favorites_service.dart
index fef4a323a8..2f64e63d41 100644
--- a/mobile/lib/services/favorites_service.dart
+++ b/mobile/lib/services/favorites_service.dart
@@ -151,9 +151,7 @@ class FavoritesService {
final collectionID = await _getOrCreateFavoriteCollectionID();
final List<EnteFile> files = [file];
if (file.uploadedFileID == null) {
- file.collectionID = collectionID;
- await _filesDB.insert(file);
- Bus.instance.fire(CollectionUpdatedEvent(collectionID, files, "addTFav"));
+ throw AssertionError("Can only favorite uploaded items");
} else {
await _collectionsService.addOrCopyToCollection(collectionID, files);
}