mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
room list/notification services: don't request the room avatar since it's always provided
It's always provided in the `avatar` response in the field, which sliding sync's using by default, so there's no need to request the `m.room.avatar` event too.
This commit is contained in:
@@ -346,7 +346,6 @@ impl NotificationClient {
|
||||
|
||||
// Room power levels are necessary to build the push context.
|
||||
let required_state = vec![
|
||||
(StateEventType::RoomAvatar, "".to_owned()),
|
||||
(StateEventType::RoomEncryption, "".to_owned()),
|
||||
(StateEventType::RoomMember, "$LAZY".to_owned()),
|
||||
(StateEventType::RoomMember, "$ME".to_owned()),
|
||||
|
||||
@@ -181,7 +181,6 @@ impl RoomListService {
|
||||
)
|
||||
.timeline_limit(1)
|
||||
.required_state(vec![
|
||||
(StateEventType::RoomAvatar, "".to_owned()),
|
||||
(StateEventType::RoomEncryption, "".to_owned()),
|
||||
(StateEventType::RoomMember, "$LAZY".to_owned()),
|
||||
(StateEventType::RoomMember, "$ME".to_owned()),
|
||||
|
||||
@@ -255,7 +255,6 @@ async fn test_notification_client_sliding_sync() {
|
||||
[0, 16]
|
||||
],
|
||||
"required_state": [
|
||||
["m.room.avatar", ""],
|
||||
["m.room.encryption", ""],
|
||||
["m.room.member", "$LAZY"],
|
||||
["m.room.member", "$ME"],
|
||||
@@ -275,7 +274,6 @@ async fn test_notification_client_sliding_sync() {
|
||||
"room_subscriptions": {
|
||||
"!a98sd12bjh:example.org": {
|
||||
"required_state": [
|
||||
["m.room.avatar", ""],
|
||||
["m.room.encryption", ""],
|
||||
["m.room.member", "$LAZY"],
|
||||
["m.room.member", "$ME"],
|
||||
|
||||
@@ -269,7 +269,6 @@ async fn test_sync_all_states() -> Result<(), Error> {
|
||||
ALL_ROOMS: {
|
||||
"ranges": [[0, 19]],
|
||||
"required_state": [
|
||||
["m.room.avatar", ""],
|
||||
["m.room.encryption", ""],
|
||||
["m.room.member", "$LAZY"],
|
||||
["m.room.member", "$ME"],
|
||||
@@ -1815,7 +1814,6 @@ async fn test_dynamic_entries_stream_manual_update() -> Result<(), Error> {
|
||||
"lists": {
|
||||
ALL_ROOMS: {
|
||||
"required_state": [
|
||||
["m.room.avatar", ""],
|
||||
["m.room.encryption", ""],
|
||||
["m.room.member", "$LAZY"],
|
||||
["m.room.member", "$ME"],
|
||||
|
||||
Reference in New Issue
Block a user