matrix-rust-sdk icon indicating copy to clipboard operation
matrix-rust-sdk copied to clipboard

feat(push): add experimental support for applying "Do not Disturb" notification settings as per MSC4359

Open Johennes opened this issue 3 months ago • 3 comments

This adds partial support for https://github.com/matrix-org/matrix-spec-proposals/pull/4359 and suppresses push notifications when a room is set to "Do not Disturb" (DnD). The DnD setting is sourced from a dedicated global account data event.

  • [x] Public API changes documented in changelogs (optional)

Johennes avatar Sep 18 '25 14:09 Johennes

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 88.40%. Comparing base (943b048) to head (1292755). :warning: Report is 8 commits behind head on main. :white_check_mark: All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5687   +/-   ##
=======================================
  Coverage   88.40%   88.40%           
=======================================
  Files         359      359           
  Lines       99060    99063    +3     
  Branches    99060    99063    +3     
=======================================
+ Hits        87570    87573    +3     
+ Misses       7353     7351    -2     
- Partials     4137     4139    +2     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Sep 18 '25 15:09 codecov[bot]

CodSpeed Performance Report

Merging #5687 will not alter performance

Comparing Johennes:johannes/msc4359 (1292755) with main (bbeb2d2)

Summary

✅ 50 untouched

codspeed-hq[bot] avatar Sep 18 '25 16:09 codspeed-hq[bot]

Oh. 😯 This actually seemed relatively minimal to me, especially when compared to its predecessor #5441. I understand the rationale though and keeping this in a fork is fine. If it's ok, I'll leave this pull request open in draft state because it's currently the only public implementation of the MSC.

Johennes avatar Oct 02 '25 12:10 Johennes