From 256775ffae70fcc7470dc8f8827e1d0e982c1ba4 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sun, 4 Sep 2022 17:45:29 +0800 Subject: [PATCH] Fix shared file is always ignored The code is wrongly comparing with a / prefix that's got removed --- app/lib/bloc/list_sharing.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/bloc/list_sharing.dart b/app/lib/bloc/list_sharing.dart index 1d908f26..492f2918 100644 --- a/app/lib/bloc/list_sharing.dart +++ b/app/lib/bloc/list_sharing.dart @@ -344,7 +344,7 @@ class ListSharingBloc extends Bloc { return null; } 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 return null; }