Page MenuHomePhabricator

[native] Fix broken error handling in getUserPublicKey
ClosedPublic

Authored by ashoat on Mar 6 2023, 11:01 AM.
Tags
None
Referenced Files
F3493703: D6957.id23471.diff
Thu, Dec 19, 3:55 AM
Unknown Object (File)
Sat, Dec 14, 8:11 AM
Unknown Object (File)
Sat, Dec 14, 8:11 AM
Unknown Object (File)
Sat, Dec 14, 8:10 AM
Unknown Object (File)
Sat, Dec 14, 8:05 AM
Unknown Object (File)
Wed, Dec 4, 7:50 AM
Unknown Object (File)
Wed, Dec 4, 7:49 AM
Unknown Object (File)
Wed, Dec 4, 7:49 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