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, Apr 1, 3:26 AM
Unknown Object (File)
Mon, Mar 31, 8:58 AM
Unknown Object (File)
Sun, Mar 30, 5:43 PM
Unknown Object (File)
Sun, Mar 30, 3:48 PM
Unknown Object (File)
Sun, Mar 30, 1:11 AM
Unknown Object (File)
Sat, Mar 29, 12:33 PM
Unknown Object (File)
Thu, Mar 27, 6:20 AM
Unknown Object (File)
Wed, Mar 19, 2:26 PM
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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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

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.