feat(ui): Enable include_heroes for all_rooms and visible_rooms.

This commit is contained in:
Ivan Enderlin
2024-05-23 09:14:57 +02:00
committed by Benjamin Bouvier
parent 4892fce37c
commit 93fa01f7f5
2 changed files with 3 additions and 0 deletions

View File

@@ -459,6 +459,7 @@ fn configure_all_or_visible_rooms_list(
) -> SlidingSyncListBuilder {
list_builder
.sort(vec!["by_recency".to_owned(), "by_name".to_owned()])
.include_heroes(Some(true))
.filters(Some(assign!(SyncRequestListFilters::default(), {
// As defined in the [SlidingSync MSC](https://github.com/matrix-org/matrix-spec-proposals/blob/9450ced7fb9cf5ea9077d029b3adf36aebfa8709/proposals/3575-sync.md?plain=1#L444)
// If unset, both invited and joined rooms are returned. If false, no invited rooms are

View File

@@ -275,6 +275,7 @@ async fn test_sync_all_states() -> Result<(), Error> {
["m.room.name", ""],
["m.room.power_levels", ""],
],
"include_heroes": true,
"filters": {
"is_tombstoned": false,
"not_room_types": ["m.space"],
@@ -333,6 +334,7 @@ async fn test_sync_all_states() -> Result<(), Error> {
["m.room.encryption", ""],
["m.room.member", "$LAZY"],
],
"include_heroes": true,
"filters": {
"is_tombstoned": false,
"not_room_types": ["m.space"],