feat(widget): Send custom to-device messages in widgets in e2ee rooms
Adds the capability for widgets to send encrytped to-device messages properly.
It is getting rid of the old encrypted boolean that was used by widget to request encryption. As said by the base MSC for widget send/receive messages: Widgets should not be aware of encryption. If the widget is in an encrytped room then to-device traffic will be encrypted.
Fixes https://github.com/matrix-org/matrix-rust-sdk/issues/4859
- [ ] Public API changes documented in changelogs (optional)
Signed-off-by:
Codecov Report
Attention: Patch coverage is 94.54545% with 12 lines in your changes missing coverage. Please review.
Project coverage is 88.75%. Comparing base (
1aa933c) to head (0291b04). Report is 113 commits behind head on main.
:white_check_mark: All tests successful. No failed tests found.
Additional details and impacted files
@@ Coverage Diff @@
## main #5252 +/- ##
==========================================
- Coverage 90.20% 88.75% -1.45%
==========================================
Files 334 330 -4
Lines 105133 88866 -16267
Branches 105133 88866 -16267
==========================================
- Hits 94831 78871 -15960
+ Misses 6238 6179 -59
+ Partials 4064 3816 -248
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Ok if I squash merge this?
Ok if I squash merge this?
yes 👍
Oh one thing. We should add a changelog entry, though let's do so in a separate PR.
Oh one thing. We should add a changelog entry, though let's do so in a separate PR.
https://github.com/matrix-org/matrix-rust-sdk/pull/5323/files