Fix wrong path used to check imported shared album

This commit is contained in:
Ming Ming 2021-12-06 17:51:16 +08:00
parent 1a84ee8960
commit 51ba3e405a

View file

@ -270,8 +270,8 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
return;
}
if (_isAccountOfInterest(ev.account)) {
if (ev.destination.startsWith(remote_storage_util
.getRemotePendingSharedAlbumsDir(ev.account)) &&
if (ev.destination
.startsWith(remote_storage_util.getRemoteAlbumsDir(ev.account)) &&
ev.file.path.startsWith(remote_storage_util
.getRemotePendingSharedAlbumsDir(ev.account))) {
// moving from/to pending dir