π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Remove obsolete code
ashilkn584a37d2a20f
diff --git a/mobile/lib/services/favorites_service.dart b/mobile/lib/services/favorites_service.dartindex 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);}