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

Function isMessageThread

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

Source from the content-addressed store, hash-verified

124// apart. Until the router is ready asPath is the route template itself,
125// which is no thread: peer ids never start with "[".
126const isMessageThread = (asPath?: string): boolean =>
127 /^\/messages\/[^/?#[]/.test(withoutLayoutVariantPrefix(asPath ?? ''));
128
129// Settings and forms are places you finish, not places you browse from:
130// 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