[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