Page MenuHomePhabricator

[native] Consume `useThreadInChatList` in `native/ThreadSettings`
ClosedPublic

Authored by atul on May 6 2024, 2:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 2:38 AM
Unknown Object (File)
Tue, Nov 26, 12:27 AM
Unknown Object (File)
Thu, Nov 21, 2:21 AM
Unknown Object (File)
Thu, Nov 21, 2:21 AM
Unknown Object (File)
Sun, Nov 10, 11:41 AM
Unknown Object (File)
Fri, Nov 8, 7:17 PM
Unknown Object (File)
Oct 22 2024, 1:15 PM
Unknown Object (File)
Oct 22 2024, 9:03 AM
Subscribers
None

Details

Summary

Similar to rest of stack, we want to replace usages of threadHasPermission with useThreadHasPermission which we're doing indirectly when we replace threadInChatList with useThreadInChatList.


Depends on D11915

Test Plan

flow + close reading for now

Logged value of isThreadInChatList and ensured it was same before/after change.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.May 6 2024, 2:16 PM

flow + close reading for now

Sounds risky for a change that changes the flow.

native/chat/settings/thread-settings.react.js
1166 ↗(On Diff #39874)

I find these names a bit confusing - they don't indicate that they are boolean flags. This might be expensive, but I think it would be better to put is somewhere inside them.

This revision is now accepted and ready to land.May 7 2024, 1:53 AM

address feedback (useThreadInChatList -> useIsThreadInChatList)

This revision was landed with ongoing or failed builds.May 14 2024, 1:26 PM
This revision was automatically updated to reflect the committed changes.