Browse Source

Sync only folders that aren't owned by the user

Vishnu Mohandas 5 năm trước cách đây
mục cha
commit
6e688cd445
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      lib/folder_service.dart

+ 4 - 2
lib/folder_service.dart

@@ -41,8 +41,10 @@ class FolderSharingService {
         }
       }
       for (final folder in folders) {
-        await syncDiff(folder);
-        await FolderDB.instance.putFolder(folder);
+        if (folder.owner != Configuration.instance.getUsername()) {
+          await syncDiff(folder);
+          await FolderDB.instance.putFolder(folder);
+        }
       }
       Bus.instance.fire(RemoteSyncEvent(true));
     });