Page MenuHomePhabricator

Update useProcessDMOperation to enable sending E2EE notifs
AbandonedPublic

Authored by marcin on Aug 12 2024, 6:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 12, 7:19 PM
Unknown Object (File)
Thu, Sep 12, 7:18 PM
Unknown Object (File)
Thu, Sep 12, 7:18 PM
Unknown Object (File)
Mon, Sep 9, 1:46 PM
Unknown Object (File)
Thu, Aug 29, 9:32 PM
Unknown Object (File)
Thu, Aug 29, 3:44 PM
Unknown Object (File)
Mon, Aug 26, 6:12 AM
Unknown Object (File)
Sun, Aug 25, 6:29 AM
Subscribers

Details

Reviewers
kamil
tomek
Summary

This differential modifies useProcessDmOperation to convert returned rawMessageInfos into MessageData and then send them as notifs.

Test Plan
  1. Apply this patch: https://gist.github.com/marcinwasowicz/4171e0ff3c46fa4744bcdcd75de44d33. It is a small patch that updates chat-input-bar.react.js on web to use useProcessDMOperationon various dm operation types when sending text message.
  2. Uncomment each operation one by one and send text message.
  3. Ensure that the native recipient sees both text notification and the e2ee notification consistent with dm operation.
NOTE: for some dm operations it is necessary to comment some code in relevant spec.js file to make it work. I didn't include those changes since it would bloat testing patch making it unreadable.

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-8284
Lint
No Lint Coverage
Unit
No Test Coverage