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)
Wed, Nov 20, 3:11 AM
Unknown Object (File)
Wed, Nov 20, 3:10 AM
Unknown Object (File)
Wed, Nov 20, 3:09 AM
Unknown Object (File)
Wed, Nov 20, 2:44 AM
Unknown Object (File)
Sun, Nov 3, 5:36 AM
Unknown Object (File)
Oct 18 2024, 9:47 PM
Unknown Object (File)
Oct 18 2024, 9:47 PM
Unknown Object (File)
Oct 18 2024, 9:41 PM
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