From c2c3508414eef46a9f425c61b24c1222a5a03bee Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Tue, 19 Oct 2021 04:16:26 +0800 Subject: [PATCH] No longer list non-link shares by me --- lib/bloc/list_sharing.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bloc/list_sharing.dart b/lib/bloc/list_sharing.dart index e1c53d0f..dd9edd96 100644 --- a/lib/bloc/list_sharing.dart +++ b/lib/bloc/list_sharing.dart @@ -220,6 +220,10 @@ class ListSharingBloc extends Bloc { 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