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

Function threadIsTopLevel

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

threadInChatListFunction · 0.85
threadIsChannelFunction · 0.85

Tested by

no test coverage detected