Support MSC4028 (Push all encrypted events except for muted rooms) #7607
Labels
A-Notifications
T-Enhancement
New features, changes in functionality, performance boosts, user-facing improvements
Description
The purpose of MSC4028 is to be able to support on mobile clients the "mentions-and-keywords-only" room notification setting in encrypted rooms.
This MSC adds a new “server-default" override push rule (
.m.rule.encrypted_event
) in order to force the server to push all encrypted events to the registered client except for muted room. This impacts the unread notification counts sent by the server in the sync responses. Indeed these counts will not be null anymore for encrypted rooms configured in "mentions-and-keywords-only" mode.I list here the 2 options to support this new MSC in Element-iOS:
option A: We do the minimum, which means we don't fix/support the "mentions-and-keywords-only" room notification setting in encrypted rooms. These rooms will still be considered as "muted" locally.
-> Do not display badge on "mentions-and-keywords-only" encrypted rooms even if the received unread count is not null (They are locally muted).
-> Do not count these rooms in the global unread room counter (application badge) too
option B: We decide to support the "mentions-and-keywords-only" room notification setting in encrypted rooms. We have then to fix the following points:
.m.rule.encrypted_event
is present and enabled in the account push rules set, the clients have to track unread notifications themselves in encrypted rooms. Indeed the unread notification counts received from the server will be increased for each encrypted event, so the client should not display directly these counts. We should then implement the algorithm described in the MSC4028 proposal here. We may decide to check only if there is or not unread notifications in the room without counting them. The client would display a dot to highlight rooms with unread notifications (instead of a badge with a count).The text was updated successfully, but these errors were encountered: