Page MenuHomePhabricator

[lib] Move `invariant` in `changeThreadSettings` above `callServerEndpoint`
ClosedPublic

Authored by atul on Apr 4 2023, 1:05 PM.
Tags
None
Referenced Files
F2196393: D7305.diff
Fri, Jul 5, 12:35 PM
Unknown Object (File)
Sun, Jun 30, 11:19 PM
Unknown Object (File)
Tue, Jun 18, 8:37 AM
Unknown Object (File)
Wed, Jun 12, 7:11 PM
Unknown Object (File)
Wed, Jun 12, 6:12 AM
Unknown Object (File)
May 30 2024, 5:34 AM
Unknown Object (File)
May 29 2024, 6:37 AM
Unknown Object (File)
May 29 2024, 6:37 AM
Subscribers

Details

Summary

Unless I'm mistaken, it makes more sense to check this before we make a call to the keyserver?

Test Plan

Things continue to work as expected, we don't expect to see this invariant hit.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Apr 4 2023, 1:05 PM
atul added inline comments.
lib/actions/thread-actions.js
52–55

I'm guessing it was put there because it's only there to prevent Flow errors in the return, but this is fine

This revision is now accepted and ready to land.Apr 4 2023, 1:44 PM
This revision was landed with ongoing or failed builds.Apr 5 2023, 7:13 AM
This revision was automatically updated to reflect the committed changes.