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
F5374522: D10142.id34136.diff
Wed, Apr 9, 4:33 PM
F5360312: D10142.diff
Wed, Apr 9, 12:13 PM
F5353163: D10142.id34135.diff
Wed, Apr 9, 9:51 AM
F5346206: D10142.id34143.diff
Wed, Apr 9, 3:58 AM
Unknown Object (File)
Wed, Apr 9, 12:39 AM
Unknown Object (File)
Wed, Apr 9, 12:06 AM
Unknown Object (File)
Tue, Apr 8, 10:15 PM
Unknown Object (File)
Tue, Apr 8, 9:05 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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.