HomePhabricator
Diffusion Comm ee55ca79b595

[lib] implement function that processes and sends DM operations

Description

[lib] implement function that processes and sends DM operations

Summary: ENG-8986

Test Plan:

  1. 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',
  });
  1. Apply this patch: link;
  2. 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

Details

Provenance
kamilAuthored on Aug 13 2024, 5:43 AM
Reviewer
tomek
Differential Revision
D13060: [lib] implement function that processes and sends DM operations
Parents
rCOMM6d256a561f4d: [native] Move opacityStyle
Branches
Unknown
Tags
Unknown