there are a lot of tonic status messages that need to be converted to snake_case and dedup'd.
i've arbitrarily broken this work up into chunks to make it easier to review
Depends on D12403
Paths
| Differential D12404 Authored by varun on Jun 12 2024, 8:12 AM.
Tags None Referenced Files
Details Summary there are a lot of tonic status messages that need to be converted to snake_case and dedup'd. i've arbitrarily broken this work up into chunks to make it easier to review Depends on D12403 Test Plan git grep for the old status messages, change client error handling where needed
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptJun 12 2024, 8:12 AM2024-06-12 08:12:23 (UTC-7) Harbormaster completed remote builds in B29623: Diff 41242.Jun 12 2024, 8:34 AM2024-06-12 08:34:19 (UTC-7) This revision is now accepted and ready to land.Jun 13 2024, 1:11 AM2024-06-13 01:11:52 (UTC-7) Closed by commit rCOMMbbc994dad36d: [services] convert more tonic status messages to snake_case and dedup (authored by varun). · Explain WhyJun 17 2024, 9:47 AM2024-06-17 09:47:17 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 41242 native/utils/farcaster-utils.js
services/identity/src/client_service.rs
services/identity/src/constants.rs
services/identity/src/grpc_services/authenticated.rs
|
We definitely should return something from this lambda since otherwise it is useless to assign it to variable.
If we find that we don't have permissions then just calling await this.requestAndroidNotificationsPermission(); would result in a prompt asking for notifications permissions. However if the user grants those permissions then hasPermissions is still falsy (since promise returned nothing), so deviceToken will be set to null. Nevertheless permissions are actually granted byt the OS, so the state on the device and keyserver would heal itself on next render.
This differential fixes this case so that if user grants permissions correct state is achieved immediately without need for additional re-render to heal the state.