Page MenuHomePhabricator

[lib] implement action for sending DM messages
ClosedPublic

Authored by kamil on Fri, Aug 23, 5:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 13, 12:08 PM
Unknown Object (File)
Fri, Sep 13, 7:37 AM
Unknown Object (File)
Mon, Sep 9, 10:26 AM
Unknown Object (File)
Mon, Sep 9, 10:06 AM
Unknown Object (File)
Thu, Sep 5, 2:11 PM
Unknown Object (File)
Wed, Sep 4, 6:22 PM
Unknown Object (File)
Tue, Sep 3, 6:26 PM
Unknown Object (File)
Mon, Sep 2, 6:21 AM
Subscribers

Details

Summary

ENG-8423.

Action dispatched when processing DM Operation, sucess will be dispatched when Tunnelbroker finished queueing messages.

SEND_DM_FAILED is not needed but implemented it this way to use dispatchActionPromise.

Depends on D13154

Test Plan

Test dispatching this action.

Note: This stack is tested end-to-end according to the process described here.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
lib/reducers/message-reducer.js
1878 ↗(On Diff #43612)

I think we should remove the local entry when remainingOutboundP2PMessageIDs.length === 0.

kamil published this revision for review.Fri, Aug 23, 7:26 AM
kamil added inline comments.
lib/reducers/message-reducer.js
1893 ↗(On Diff #43612)

this is used to show message in progress in UI when retrying

tomek added inline comments.
lib/reducers/message-reducer.js
1865 ↗(On Diff #43612)

We should create a Set from it before filtering.

1878 ↗(On Diff #43612)

Agree

lib/types/redux-types.js
1596 ↗(On Diff #43612)

Do you think it makes sense to rename this type?

This revision is now accepted and ready to land.Mon, Aug 26, 4:17 AM
  • rename type
  • use Set
  • remove local entry after success