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