mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 10:58:50 +01:00
No longer list files shared with me
This commit is contained in:
parent
8931a191f5
commit
bda5a9826c
1 changed files with 0 additions and 16 deletions
|
@ -252,22 +252,6 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
|
||||||
remote_storage_util.getRemoteAlbumsDir(ev.account)) {
|
remote_storage_util.getRemoteAlbumsDir(ev.account)) {
|
||||||
return await _querySharedAlbum(ev, e);
|
return await _querySharedAlbum(ev, e);
|
||||||
}
|
}
|
||||||
if (!file_util.isSupportedMime(e.mimeType)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
if (ev.account.roots
|
|
||||||
.every((r) => r.isNotEmpty && !e.path.startsWith("/$r/"))) {
|
|
||||||
// ignore files not under root dirs
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
final file = await FindFile()(ev.account, e.itemSource);
|
|
||||||
return ListSharingFile(e, file);
|
|
||||||
} catch (_) {
|
|
||||||
_log.warning("[_querySharesWithMe] File not found: ${e.itemSource}");
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return (await Future.wait(futures)).whereType<ListSharingItem>().toList();
|
return (await Future.wait(futures)).whereType<ListSharingItem>().toList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue