matrix-org / matrix-org/matrix-rust-sdk

Add disable_badge_count parameter to the set_pusher method.

Open
#4,951 0 comments 0 reactions 1 assignee Claimed by @jmartinesp View on GitHub
Dominant language
Rust
Stars
2.3k
Forks
500
Avg merge
1d 16h
Merged PRs (30d)
106

Description

The method `client.set_pusher` should add `org.matrix.msc4076.disable_badge_count: true` in the data sent to the server to let the server know that the application do not want to receive push just about updating the unread count.

This should reduce the number of Pushes that the application is receiving (with high priority) and which are at the end ignored by both Element X Android and Element X iOS.

Not sure if this parameter should be exposed in the Client API or if this can be just a hard-coded value in the SDK.

Ref:
- MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/4076
- Synapse impl (there is a feature flag): https://github.com/element-hq/synapse/pull/17975

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.