HomePhabricator
Diffusion Comm d0b9971793b3

[lib] Track progress of message processing

Description

[lib] Track progress of message processing

Summary:
Messages are scheduled using a function that returns a promise which is resolved after messages are sent.

https://linear.app/comm/issue/ENG-8674/track-progress-of-sending-tunnelbroker-messages

Depends on D12776

Test Plan:
Tested on both native and web. Added some code

await this.props.p2p.sendDMOperation({
  op: {
    type: 'send_text_message',
    threadID: messageInfo.threadID,
    creatorID: messageInfo.creatorID,
    time: messageInfo.time,
    messageID: getUUID(),
    text: messageInfo.text,
  },
  supportsAutoRetry: false,
  recipients: 'self_devices',
});

to input state containers so that it is called after sending messages. Checked if the second device received a message after sending a text message.

Reviewers: kamil, marcin

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12786

Details

Provenance
tomekAuthored on Jul 17 2024, 10:52 AM
Reviewer
kamil
Differential Revision
D12786: [lib] Track progress of message processing
Parents
rCOMMda886a2548bb: [lib] Generate P2P messages based on actions
Branches
Unknown
Tags
Unknown