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)
Sat, Sep 14, 11:47 PM
Unknown Object (File)
Sat, Sep 14, 11:47 PM
Unknown Object (File)
Sat, Sep 14, 11:46 PM
Unknown Object (File)
Sat, Sep 14, 11:44 PM
Unknown Object (File)
Sun, Sep 8, 2:47 AM
Unknown Object (File)
Thu, Sep 5, 7:50 AM
Unknown Object (File)
Wed, Sep 4, 8:30 PM
Unknown Object (File)
Sat, Aug 31, 11:31 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