do not show warning if already shared

This commit is contained in:
Neeraj Gupta 2022-09-01 15:10:45 +05:30
parent 9b7c3ec7e0
commit 8dd3acac71
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -253,6 +253,10 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
collection == null) {
return false;
}
// collection is already shared
if (collection.sharees.isNotEmpty || collection.publicURLs.isNotEmpty) {
return false;
}
final collectionIDsWithHiddenFiles =
await FilesDB.instance.getCollectionIDsOfHiddenFiles(
Configuration.instance.getUserID(),