瀏覽代碼

Only show quick links in shared by me section

Neeraj Gupta 2 年之前
父節點
當前提交
73f05a17d0
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 3
      lib/ui/collections_gallery_widget.dart
  2. 3 1
      lib/ui/shared_collections_gallery.dart

+ 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,