Page MenuHomePhabricator

[native] Fix broken error handling in getUserPublicKey
ClosedPublic

Authored by ashoat on Mar 6 2023, 11:01 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Sun, Apr 28, 9:02 AM
Unknown Object (File)
Sun, Apr 28, 8:21 AM
Unknown Object (File)
Mar 28 2024, 5:24 PM
Unknown Object (File)
Mar 28 2024, 5:24 PM
Unknown Object (File)
Mar 28 2024, 5:24 PM
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