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

Function threadTypeCanBePending

lib/shared/thread-utils.js:646–659  ·  view source on GitHub ↗
(threadType: ThreadType)

Source from the content-addressed store, hash-verified

644}
645
646function threadTypeCanBePending(threadType: ThreadType): boolean {
647 return (
648 threadType === threadTypes.GENESIS_PERSONAL ||
649 threadType === threadTypes.COMMUNITY_SECRET_SUBTHREAD ||
650 threadType === threadTypes.SIDEBAR ||
651 threadType === threadTypes.GENESIS_PRIVATE ||
652 threadType === threadTypes.PERSONAL ||
653 threadType === threadTypes.LOCAL ||
654 threadType === threadTypes.THICK_SIDEBAR ||
655 threadType === threadTypes.PRIVATE ||
656 threadType === threadTypes.FARCASTER_GROUP ||
657 threadType === threadTypes.FARCASTER_PERSONAL
658 );
659}
660
661type RawThreadInfoOptions = {
662 +filterThreadEditAvatarPermission?: boolean,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected