feat(push): add experimental support for applying "Do not Disturb" notification settings as per MSC4359
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)
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.
CodSpeed Performance Report
Merging #5687 will not alter performance
Comparing Johennes:johannes/msc4359 (1292755) with main (bbeb2d2)
Summary
✅ 50 untouched
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.