Page MenuHomePhabricator

[native] Fix broken error handling in getUserPublicKey
ClosedPublic

Authored by ashoat on Mar 6 2023, 11:01 AM.
Tags
None
Referenced Files
F1780430: D6957.diff
Sat, May 18, 4:43 AM
Unknown Object (File)
Sat, May 11, 10:28 AM
Unknown Object (File)
Sat, May 11, 10:28 AM
Unknown Object (File)
Sat, May 11, 10:28 AM
Unknown Object (File)
Sat, May 11, 10:28 AM
Unknown Object (File)
Mon, Apr 29, 11:31 AM
Unknown Object (File)
Sun, Apr 28, 9:03 AM
Unknown Object (File)
Sun, Apr 28, 9:03 AM
Subscribers

Details

Summary

Context here and on Linear.

Test Plan

Repro the issue and see a promise rejection warning YellowBox instead of the app crashing on log-in

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
843–884 ↗(On Diff #23467)

Not a huge fan of having a single error that gets repurposed as we get deeper in the indentation and just the amount of indentation generally... but seems like the way we're handing things in CommCoreModule so probably fine for now.

This revision is now accepted and ready to land.Mar 6 2023, 11:21 AM
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
843–884 ↗(On Diff #23467)

I don't like it either, but don't have time to do anything better right now