Display options to remove or delete files from shared collections too

This commit is contained in:
Vishnu Mohandas 2021-03-01 17:38:54 +05:30
parent c0f1e5f671
commit 0d8f10163b

View file

@ -188,7 +188,9 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
_showDeleteSheet(context);
},
));
} else if (widget.type == GalleryAppBarType.collection) {
} else if (widget.type == GalleryAppBarType.collection ||
(widget.type == GalleryAppBarType.shared_collection &&
widget.collection.owner.id == Configuration.instance.getUserID())) {
if (widget.collection.type == CollectionType.folder) {
actions.add(IconButton(
icon: Icon(Platform.isAndroid