π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Minor fix
AmanRajSinghMouryae06d65e8a0df
diff --git a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart b/mobile/apps/locker/lib/ui/pages/all_collections_page.dartindex a6f38568a9..5a079b242a 100644--- a/mobile/apps/locker/lib/ui/pages/all_collections_page.dart+++ b/mobile/apps/locker/lib/ui/pages/all_collections_page.dart@@ -96,20 +96,16 @@ class _AllCollectionsPageState extends State<AllCollectionsPage>try {List<Collection> collections = [];- switch (widget.viewType) {- case CollectionViewType.homeCollections:- collections = await CollectionService.instance.getCollections();- break;- case CollectionViewType.outgoingCollections:- final sharedCollections =- await CollectionService.instance.getSharedCollections();+ if (widget.viewType == CollectionViewType.homeCollections) {+ collections = await CollectionService.instance.getCollections();+ } else {+ final sharedCollections =+ await CollectionService.instance.getSharedCollections();+ if (widget.viewType == CollectionViewType.outgoingCollections) {collections = sharedCollections.outgoing;- break;- case CollectionViewType.incomingCollections:- final sharedCollections =- await CollectionService.instance.getSharedCollections();+ } else if (widget.viewType == CollectionViewType.incomingCollections) {collections = sharedCollections.incoming;- break;+ }}final regularCollections = <Collection>[];