Description
El-X displays the user-defined notification mode for each room in the room list:
- Room list entry with notification mode set to
mentions and keywords only

- Room list entry with notification mode set to
mute

Currently, the RoomListService
knows nothing about the notification parameters, and the ffi layer adds the user-defined notification mode to the RoomInfo
crate.
This works well for the initial construction of the room list, but if the push rules are updated in the account data, the RoomListService
is currently unable to detect these changes.
As a work-around, El-X listens for changes to the push rules and rebuilds the room summaries whenever a change is detected.
Would it be possible to have this mechanism in the RoomListService
(i.e. update the room list each time a room notification mode is updated)?
Here, we are only interested in user-defined push rules that have an impact on a room:
- an
Override
rule with anEventMatch
condition whose key isroom_id
- a
Room
rule
Note: the matrix-sdk
notification_settings
crate allows to get the user-defined notification for a room.