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

Function threadIsTopLevel

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

threadInChatListFunction · 0.85
threadIsChannelFunction · 0.85

Tested by

no test coverage detected