From 5920fd3f45c03244e0423b0668fe92ecb3a323bf Mon Sep 17 00:00:00 2001 From: Jorge Martin Espinosa Date: Tue, 3 Sep 2024 17:44:48 +0200 Subject: [PATCH] Make pinned events required state in SlidingSync (#3385) This is needed to always have the pinned events of a room as soon as we open it. --- .../android/libraries/matrix/impl/room/RoomSyncSubscriber.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSyncSubscriber.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSyncSubscriber.kt index b149f88006..e2090871fa 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSyncSubscriber.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSyncSubscriber.kt @@ -45,6 +45,7 @@ class RoomSyncSubscriber( RequiredState(key = EventType.STATE_ROOM_CANONICAL_ALIAS, value = ""), RequiredState(key = EventType.STATE_ROOM_JOIN_RULES, value = ""), RequiredState(key = EventType.STATE_ROOM_POWER_LEVELS, value = ""), + RequiredState(key = EventType.STATE_ROOM_PINNED_EVENT, value = ""), ), timelineLimit = DEFAULT_TIMELINE_LIMIT, // We don't need heroes here as they're already included in the `all_rooms` list