From 3b0f02d2b9c20e42ff8f1babfdfa8abdeae950fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Tue, 3 Sep 2024 16:56:01 +0200 Subject: [PATCH] Make pinned events required state in SlidingSync This is needed to always have the pinned events of a room as soon as we open it. --- ElementX/Sources/Services/Client/ClientProxyProtocol.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/Client/ClientProxyProtocol.swift b/ElementX/Sources/Services/Client/ClientProxyProtocol.swift index 246149795..6ae851792 100644 --- a/ElementX/Sources/Services/Client/ClientProxyProtocol.swift +++ b/ElementX/Sources/Services/Client/ClientProxyProtocol.swift @@ -54,7 +54,8 @@ enum SlidingSyncConstants { RequiredState(key: "m.room.topic", value: ""), RequiredState(key: "m.room.avatar", value: ""), RequiredState(key: "m.room.canonical_alias", value: ""), - RequiredState(key: "m.room.join_rules", value: "") + RequiredState(key: "m.room.join_rules", value: ""), + RequiredState(key: "m.room.pinned_events", value: "") ] }