[lib] Introduce useThreadInChatList and consume in web/ThreadListProvider
Summary:
Similar to rest of diff, we want to replace usages of threadHasPermission with useThreadHasPermission.
Depends on D11914
Test Plan:
flow and close reading for now.
Logged return value of threadHasPermission and useThreadHasPermission in ThreadListProvider and ensured that they remained the same.
Reviewers: ashoat, ginsu, tomek, varun, will
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D11915