Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor: Remove redundant sharedMmdVersion check in hasShareePinned

Prateek Sunald502d2a68302
diff --git a/mobile/apps/photos/lib/models/collection/collection.dart b/mobile/apps/photos/lib/models/collection/collection.dart
index dd739cfb60..653e1264dd 100644
--- a/mobile/apps/photos/lib/models/collection/collection.dart
+++ b/mobile/apps/photos/lib/models/collection/collection.dart
@@ -106,7 +106,7 @@ class Collection {
}
bool hasShareePinned() {
- return sharedMmdVersion > 0 && (sharedMagicMetadata.order ?? 0) != 0;
+ return (sharedMagicMetadata.order ?? 0) != 0;
}
// hasLink returns true if there's any link attached to the collection