Page MenuHomePhabricator

Rip `LegacyThreadInfo` out of selectors and related code
ClosedPublic

Authored by atul on Dec 1 2023, 11:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 2, 3:38 AM
Unknown Object (File)
Fri, Mar 21, 1:40 PM
Unknown Object (File)
Wed, Mar 19, 10:52 PM
Unknown Object (File)
Mar 4 2025, 10:47 AM
Unknown Object (File)
Mar 4 2025, 5:42 AM
Unknown Object (File)
Feb 27 2025, 7:23 PM
Unknown Object (File)
Feb 27 2025, 7:15 PM
Unknown Object (File)
Feb 27 2025, 7:15 PM
Subscribers
None

Details

Summary

Ripped LegacyThreadInfo out of selectors and updated related code to use ThreadInfo as well.

We're now down to 6 usages of LegacyThreadInfo from ~750

WARNING: There was one instance where we had to add noop branching to web/modals/threads/settings/thread-settings-modal.react.js:68-72 to appease flow.

Depends on D10140

Test Plan

CI/flow/etc.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/chat/thread-list-provider.js
152 ↗(On Diff #34135)

This was accidental, it will be removed.

web/modals/threads/settings/thread-settings-modal.react.js
68–72 ↗(On Diff #34135)
NOTE: This is the one place we had to add branching to appease flow.
atul published this revision for review.Dec 1 2023, 11:28 AM
atul edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Dec 1 2023, 12:18 PM
This revision was landed with ongoing or failed builds.Dec 1 2023, 12:44 PM
This revision was automatically updated to reflect the committed changes.