Page MenuHomePhabricator

Update sendDMOperation to send notifs as well
ClosedPublic

Authored by marcin on Tue, Aug 20, 7:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 13, 1:06 PM
Unknown Object (File)
Fri, Sep 13, 12:16 PM
Unknown Object (File)
Sun, Sep 8, 10:13 AM
Unknown Object (File)
Sat, Sep 7, 2:19 PM
Unknown Object (File)
Fri, Sep 6, 11:53 PM
Unknown Object (File)
Fri, Sep 6, 11:53 PM
Unknown Object (File)
Fri, Sep 6, 2:36 PM
Unknown Object (File)
Fri, Sep 6, 8:39 AM
Subscribers

Details

Summary

This differential updates sendDMOperation to create and send notifs as well

Test Plan
  1. Apply this patch: https://gist.github.com/marcinwasowicz/2db9332e8d59225d5549fe2e4e29d4cf
  2. Send message from web to native client.
  3. Ensure that client displays a list of different notifications including:
    1. text message notif
    2. thread creation notif
    3. reaction notif
    4. thread settings change notifs
    5. sidebar creation notif

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

marcin edited the test plan for this revision. (Show Details)

Reflect changes in parent differential

Move notification sending logic to peer-to-peer-context

kamil added inline comments.
lib/shared/dm-ops/process-dm-ops.js
120–129 ↗(On Diff #43676)
lib/tunnelbroker/peer-to-peer-context.js
243–249 ↗(On Diff #43676)

could you make sure that none of those two promises throws?

This revision is now accepted and ready to land.Tue, Aug 27, 8:09 AM
lib/shared/dm-ops/process-dm-ops.js
120–129 ↗(On Diff #43676)

Flow doesn't accept this.