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
F3395914: D10142.id34143.diff
Sun, Dec 1, 8:55 AM
F3395735: D10142.diff
Sun, Dec 1, 7:20 AM
Unknown Object (File)
Fri, Nov 29, 12:44 AM
Unknown Object (File)
Fri, Nov 29, 12:40 AM
Unknown Object (File)
Thu, Nov 7, 4:20 AM
Unknown Object (File)
Oct 30 2024, 6:50 PM
Unknown Object (File)
Oct 2 2024, 11:50 PM
Unknown Object (File)
Oct 2 2024, 12:30 AM
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.