Skip to content

Commit

Permalink
Make pinned events required state in SlidingSync (#3385)
Browse files Browse the repository at this point in the history
This is needed to always have the pinned events of a room as soon as we open it.
  • Loading branch information
jmartinesp authored Sep 3, 2024
1 parent b8ba674 commit 5920fd3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5920fd3

Please sign in to comment.