[lib] implement function that processes and sends DM operations
Summary: ENG-8986
Test Plan:
- Execute this code to create a thread:
await this.props.processAndSendDMOperation({ op: { type: 'create_thread', threadID: 'DM_6', creatorID: creatorID, time: Date.now(), threadType: threadTypes.LOCAL, memberIDs: [ '21A8E883-C3D8-4964-8F6D-6FFDBF3A3122', '56F5BB78-5487-4164-A0D7-1597888119D9', ], roleID: uuid.v4(), newMessageID: uuid.v4(), }, supportsAutoRetry: false, recipients: 'all_peer_devices', });
- Apply this patch: link;
- Try sending DM messages between web and native, make sure message appear on both sender and recipient.
Reviewers: tomek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13060