mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 00:07:01 +00:00
fix: keep the app from closing when a files widget opens it offline #52
This commit is contained in:
@@ -98,6 +98,9 @@ export default function ShareSheet({ node, onClose, onChanged }: ShareSheetProps
|
||||
);
|
||||
|
||||
const candidates = useMemo(() => {
|
||||
// The sheet is mounted with the Files tab, before a session may exist
|
||||
// (an offline cold start): nobody to list yet, and no own id to read.
|
||||
if (principals.length === 0) return [];
|
||||
const self = ownPrincipalId();
|
||||
const q = search.trim().toLowerCase();
|
||||
return principals
|
||||
|
||||
Reference in New Issue
Block a user