Prechádzať zdrojové kódy

Only show quick links in shared by me section

Neeraj Gupta 2 rokov pred
rodič
commit
73f05a17d0

+ 1 - 3
lib/ui/collections_gallery_widget.dart

@@ -117,9 +117,7 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
       (e) => (e.collection.isSharedFilesCollection()),
     );
 
-    return favMathResult.matched +
-        potentialSharedLinkCollection.unmatched +
-        potentialSharedLinkCollection.matched;
+    return favMathResult.matched + potentialSharedLinkCollection.unmatched;
   }
 
   Widget _getCollectionsGalleryWidget(

+ 3 - 1
lib/ui/shared_collections_gallery.dart

@@ -73,7 +73,9 @@ class _SharedCollectionGalleryState extends State<SharedCollectionGallery>
           final c =
               CollectionsService.instance.getCollectionByID(file.collectionID);
           if (c.owner.id == Configuration.instance.getUserID()) {
-            if (c.sharees.isNotEmpty || c.publicURLs.isNotEmpty) {
+            if (c.sharees.isNotEmpty ||
+                c.publicURLs.isNotEmpty ||
+                c.isSharedFilesCollection()) {
               outgoing.add(
                 CollectionWithThumbnail(
                   c,