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)
Fri, Dec 27, 2:25 PM
Unknown Object (File)
Thu, Dec 26, 12:28 PM
Unknown Object (File)
Wed, Dec 25, 6:29 AM
Unknown Object (File)
Sun, Dec 22, 4:21 AM
Unknown Object (File)
Fri, Dec 20, 6:14 PM
Unknown Object (File)
Fri, Dec 20, 11:07 AM
Unknown Object (File)
Mon, Dec 16, 3:09 PM
Unknown Object (File)
Mon, Dec 16, 3:09 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.