Page MenuHomePhabricator

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

Authored by atul on May 6 2024, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 8:42 AM
Unknown Object (File)
Sun, Dec 22, 8:28 PM
Unknown Object (File)
Sun, Dec 22, 8:28 PM
Unknown Object (File)
Sun, Dec 22, 8:28 PM
Unknown Object (File)
Sun, Dec 22, 8:27 PM
Unknown Object (File)
Sun, Dec 22, 8:27 PM
Unknown Object (File)
Sun, Dec 1, 5:10 PM
Unknown Object (File)
Sun, Dec 1, 5:10 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
Branch
arcpatch-D11915 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.May 6 2024, 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.May 6 2024, 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)