Page MenuHomePhabricator

[lib] Introduce `useThreadInChatList` and consume in `web/ThreadListProvider`
ClosedPublic

Authored by atul on Mon, May 6, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 23, 2:21 PM
Unknown Object (File)
Fri, May 17, 8:44 AM
Unknown Object (File)
Wed, May 15, 2:08 AM
Unknown Object (File)
Sat, May 11, 10:11 PM
Unknown Object (File)
Sat, May 11, 6:02 PM
Unknown Object (File)
Thu, May 9, 8:33 PM
Unknown Object (File)
Mon, May 6, 3:28 PM
Unknown Object (File)
Mon, May 6, 3:24 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Mon, May 6, 1:51 PM
ashoat added inline comments.
lib/shared/thread-utils.js
209–212 ↗(On Diff #39873)

What's the point of memoizing a boolean?

This revision is now accepted and ready to land.Mon, May 6, 2:12 PM
lib/shared/thread-utils.js
209–212 ↗(On Diff #39873)

Yeah there's no point, I'll revert

address feedback (remove memoization of boolean value)