MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / rootContentHiddenByInboxMode

Function rootContentHiddenByInboxMode

apps/desktop/src/main/vault.ts:1115–1119  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

1113 * root" banner so an empty-looking vault is explained instead of silent.
1114 */
1115export async function rootContentHiddenByInboxMode(root: string): Promise<boolean> {
1116 const settings = await getVaultSettings(root)
1117 if (settings.primaryNotesLocation !== 'inbox') return false
1118 return (await inferPrimaryNotesLocation(root)) === 'root'
1119}
1120
1121async function vaultLooksEmpty(root: string): Promise<boolean> {
1122 let entries: Dirent[]

Callers 2

vault.test.tsFile · 0.90
registerIpcFunction · 0.90

Calls 2

getVaultSettingsFunction · 0.70

Tested by

no test coverage detected