(threadInfo: ?ThreadInfo)
| 253 | } |
| 254 | |
| 255 | function useIsThreadInChatList(threadInfo: ?ThreadInfo): boolean { |
| 256 | const threadIsVisible = useThreadHasPermission( |
| 257 | threadInfo, |
| 258 | threadPermissions.VISIBLE, |
| 259 | ); |
| 260 | return viewerIsMember(threadInfo) && threadIsVisible; |
| 261 | } |
| 262 | |
| 263 | function useThreadsInChatList( |
| 264 | threadInfos: $ReadOnlyArray<ThreadInfo>, |
no test coverage detected