mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 19:16:02 -04:00
feat(ui): Enable include_heroes for all_rooms and visible_rooms.
This commit is contained in:
committed by
Benjamin Bouvier
parent
4892fce37c
commit
93fa01f7f5
@@ -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
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user