Page MenuHomePhabricator

[lib] implement function that processes and sends DM operations
ClosedPublic

Authored by kamil on Aug 13 2024, 5:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 5:36 AM
Unknown Object (File)
Fri, Oct 18, 9:47 PM
Unknown Object (File)
Fri, Oct 18, 9:47 PM
Unknown Object (File)
Fri, Oct 18, 9:41 PM
Unknown Object (File)
Fri, Oct 18, 9:33 PM
Unknown Object (File)
Sep 29 2024, 1:31 PM
Unknown Object (File)
Sep 29 2024, 1:26 PM
Unknown Object (File)
Sep 29 2024, 11:19 AM
Subscribers

Details

Summary
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.

Diff Detail

Repository
rCOMM Comm
Branch
resending-3
Lint
No Lint Coverage
Unit
No Test Coverage