No longer list non-link shares by me

This commit is contained in:
Ming Ming 2021-10-19 04:16:26 +08:00
parent bda5a9826c
commit c2c3508414

View file

@ -220,6 +220,10 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
if (!file_util.isSupportedMime(e.mimeType)) {
return null;
}
// show only link shares
if (s.url == null) {
return null;
}
if (ev.account.roots
.every((r) => r.isNotEmpty && !e.path.startsWith("/$r/"))) {
// ignore files not under root dirs