Fix shared file is always ignored

The code is wrongly comparing with a / prefix that's got removed
This commit is contained in:
Ming Ming 2022-09-04 17:45:29 +08:00
parent 1c38dd8fce
commit 256775ffae

View file

@ -344,7 +344,7 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
return null; return null;
} }
if (ev.account.roots if (ev.account.roots
.every((r) => r.isNotEmpty && !s.path.startsWith("/$r/"))) { .every((r) => r.isNotEmpty && !s.path.startsWith("$r/"))) {
// ignore files not under root dirs // ignore files not under root dirs
return null; return null;
} }