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)
Fri, Nov 8, 2:56 AM
Unknown Object (File)
Wed, Oct 30, 7:51 AM
Unknown Object (File)
Thu, Oct 24, 4:33 PM
Unknown Object (File)
Mon, Oct 21, 3:56 PM
Unknown Object (File)
Fri, Oct 18, 10:01 AM
Unknown Object (File)
Fri, Oct 18, 10:01 AM
Unknown Object (File)
Fri, Oct 18, 10:00 AM
Unknown Object (File)
Oct 15 2024, 6:48 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul added inline comments.
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
843–884

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

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