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, Nov 14, 1:02 PM
Unknown Object (File)
Thu, Nov 14, 12:59 PM
Unknown Object (File)
Tue, Oct 22, 10:44 AM
Unknown Object (File)
Tue, Oct 22, 10:19 AM
Unknown Object (File)
Oct 17 2024, 6:39 PM
Unknown Object (File)
Oct 14 2024, 2:28 PM
Unknown Object (File)
Sep 19 2024, 11:54 AM
Unknown Object (File)
Sep 19 2024, 12:58 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