Skip to content

RoomListService should be able to update the room list when a room's notification setting is modified. #2574

Closed
@nimau

Description

@nimau

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
Screenshot 2023-09-15 at 14 36 01
  • Room list entry with notification mode set to mute
Screenshot 2023-09-15 at 14 30 52

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 an EventMatch condition whose key is room_id
  • a Room rule

Note: the matrix-sdk notification_settings crate allows to get the user-defined notification for a room.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions