Browse Source

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.
pull/3350/head
Jorge Martin Espinosa 2 weeks ago committed by GitHub
parent
commit
5920fd3f45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSyncSubscriber.kt

1
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomSyncSubscriber.kt

@ -45,6 +45,7 @@ class RoomSyncSubscriber( @@ -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

Loading…
Cancel
Save