Page MenuHomePhabricator

[native] Avoid Promise.allSettled
ClosedPublic

Authored by ashoat on Sep 23 2024, 10:16 PM.
Tags
None
Referenced Files
F3299734: D13431.id44505.diff
Sun, Nov 17, 3:08 PM
Unknown Object (File)
Fri, Nov 8, 7:02 PM
Unknown Object (File)
Fri, Nov 8, 7:02 PM
Unknown Object (File)
Fri, Nov 8, 7:01 PM
Unknown Object (File)
Fri, Nov 8, 2:08 AM
Unknown Object (File)
Mon, Oct 21, 8:18 AM
Unknown Object (File)
Fri, Oct 18, 9:08 PM
Unknown Object (File)
Oct 13 2024, 1:55 PM
Subscribers

Details

Summary

This addresses ENG-9233, which was caused by Promise.allSettled being undefined on Android.

Depends on D13430

Test Plan

Confirmed that notifs sent from Android for a new session worked

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/push/send-utils.js
996–1014 ↗(On Diff #44454)

Can we add it to our utils /Users/palys/code/comm/lib/utils/promises.js?

This revision is now accepted and ready to land.Sep 24 2024, 4:08 AM
lib/push/send-utils.js
996–1014 ↗(On Diff #44454)

We could, but then we would have to maintain the types. I looked into this, and I'm a bit concerned because the types we'd need for our current version of Flow don't match the types in their main branch. This implies that we'd have to update it at some point... I'm not sure it's worth the effort

This revision was automatically updated to reflect the committed changes.