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

Function getThreadsToDeleteText

lib/shared/thread-utils.js:1633–1641  ·  view source on GitHub ↗
(
  threadInfo: RawThreadInfo | ThreadInfo,
)

Source from the content-addressed store, hash-verified

1631}
1632
1633function getThreadsToDeleteText(
1634 threadInfo: RawThreadInfo | ThreadInfo,
1635): string {
1636 return `${
1637 threadTypeIsCommunityRoot(threadInfo.type)
1638 ? 'Subchannels and threads'
1639 : 'Threads'
1640 } within this ${communityOrThreadNoun(threadInfo)}`;
1641}
1642
1643type OldestCreatedInput = { +creationTime: number, ... };
1644function getOldestCreated<T: OldestCreatedInput>(arr: $ReadOnlyArray<T>): ?T {

Callers 2

Calls 2

communityOrThreadNounFunction · 0.85

Tested by

no test coverage detected