Page MenuHomePhabricator

Move android rescinds and badge updates to lib
Needs ReviewPublic

Authored by marcin on Thu, Jun 13, 8:50 AM.
Tags
None
Referenced Files
F2032879: D12427.id41290.diff
Tue, Jun 18, 3:45 AM
F2032855: D12427.id.diff
Tue, Jun 18, 3:45 AM
F2032828: D12427.diff
Tue, Jun 18, 3:44 AM
F2027895: D12427.diff
Mon, Jun 17, 10:16 PM
Subscribers

Details

Reviewers
tomek
kamil
Summary

This differential move Android rescinds and badge updates to lib and makes the keyserver use shared code.

Test Plan
  1. Flow
  2. Test that rescind and badge updates work on Android

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

I strongly encourage you to rethink the amount of type spreads you're doing, especially when they're nested within other types

lib/push/notif-creators.js
329

In general, I am skeptical of this approach of nesting unions inside a spread. In the past I've seen Flow not handle it well. I usually opt to make the upper type a union, and to include the shared properties in each branch (senderDeviceID, platformDetails) via a spread

333
lib/types/notif-types.js
140

What is this spread doing?

165

What is this spread doing?