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

Function threadIsChannel

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

Source from the content-addressed store, hash-verified

278}
279
280function threadIsChannel(threadInfo: ?(RawThreadInfo | ThreadInfo)): boolean {
281 return !!(threadInfo && !threadTypeIsSidebar(threadInfo.type));
282}
283
284function threadIsSidebar(threadInfo: ?(RawThreadInfo | ThreadInfo)): boolean {
285 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