MCPcopy Create free account
hub / github.com/CommE2E/comm / threadIsChannel

Function threadIsChannel

lib/shared/thread-utils.js:277–279  ·  view source on GitHub ↗
(threadInfo: ?(RawThreadInfo | ThreadInfo))

Source from the content-addressed store, hash-verified

275}
276
277function threadIsChannel(threadInfo: ?(RawThreadInfo | ThreadInfo)): boolean {
278 return !!(threadInfo && !threadTypeIsSidebar(threadInfo.type));
279}
280
281function threadIsSidebar(threadInfo: ?(RawThreadInfo | ThreadInfo)): boolean {
282 return !!(threadInfo && threadTypeIsSidebar(threadInfo.type));

Callers 3

threadHasSubchannelsFunction · 0.90
useSearchSubchannelsFunction · 0.90
threadIsTopLevelFunction · 0.85

Calls 1

threadTypeIsSidebarFunction · 0.90

Tested by

no test coverage detected