MCPcopy Create free account
hub / github.com/dailydotdev/apps / isMessageThread

Function isMessageThread

packages/shared/src/components/shell/shellNav.ts:129–130  ·  view source on GitHub ↗
(asPath?: string)

Source from the content-addressed store, hash-verified

127// apart. Until the router is ready asPath is the route template itself,
128// which is no thread: peer ids never start with "[".
129const isMessageThread = (asPath?: string): boolean =>
130 /^\/messages\/[^/?#[]/.test(withoutLayoutVariantPrefix(asPath ?? ''));
131
132// Settings and forms are places you finish, not places you browse from:
133// the bar leaves so a half-edited page cannot be abandoned by a tab. A

Callers 1

hidesClusterFunction · 0.85

Calls 1

Tested by

no test coverage detected