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

Function threadTypeCanBePending

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

Source from the content-addressed store, hash-verified

637}
638
639function threadTypeCanBePending(threadType: ThreadType): boolean {
640 return (
641 threadType === threadTypes.GENESIS_PERSONAL ||
642 threadType === threadTypes.COMMUNITY_SECRET_SUBTHREAD ||
643 threadType === threadTypes.SIDEBAR ||
644 threadType === threadTypes.GENESIS_PRIVATE ||
645 threadType === threadTypes.PERSONAL ||
646 threadType === threadTypes.LOCAL ||
647 threadType === threadTypes.THICK_SIDEBAR ||
648 threadType === threadTypes.PRIVATE ||
649 threadType === threadTypes.FARCASTER_GROUP ||
650 threadType === threadTypes.FARCASTER_PERSONAL
651 );
652}
653
654type RawThreadInfoOptions = {
655 +filterThreadEditAvatarPermission?: boolean,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected