(
threadInfo: ResolvedThreadInfo,
childThreadInfosMap: {
+[id: string]: $ReadOnlyArray<ResolvedThreadInfo>,
},
)
| 72 | } |
| 73 | |
| 74 | function threadHasSubchannels( |
| 75 | threadInfo: ResolvedThreadInfo, |
| 76 | childThreadInfosMap: { |
| 77 | +[id: string]: $ReadOnlyArray<ResolvedThreadInfo>, |
| 78 | }, |
| 79 | ): boolean { |
| 80 | if (!childThreadInfosMap[threadInfo.id]?.length) { |
| 81 | return false; |
| 82 | } |
| 83 | return childThreadInfosMap[threadInfo.id].some(thread => |
| 84 | threadIsChannel(thread), |
| 85 | ); |
| 86 | } |
| 87 | |
| 88 | function useAppendCommunitySuffix( |
| 89 | communities: $ReadOnlyArray<ResolvedThreadInfo>, |
no test coverage detected