From 59f69bea053352de803444ace47c110753c83e91 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Tue, 6 May 2025 17:00:37 +0200 Subject: [PATCH] Fix empty proxy update --- .../Sources/State/ManagedProxyInfoUpdates.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/submodules/TelegramCore/Sources/State/ManagedProxyInfoUpdates.swift b/submodules/TelegramCore/Sources/State/ManagedProxyInfoUpdates.swift index b745a5b107..1384758737 100644 --- a/submodules/TelegramCore/Sources/State/ManagedProxyInfoUpdates.swift +++ b/submodules/TelegramCore/Sources/State/ManagedProxyInfoUpdates.swift @@ -202,6 +202,16 @@ func managedPromoInfoUpdates(accountPeerId: PeerId, postbox: Postbox, network: N switch data { case .promoDataEmpty: transaction.replaceAdditionalChatListItems([]) + + let suggestionInfo = ServerSuggestionInfo( + legacyItems: [], + items: [], + dismissedIds: [] + ) + + transaction.updatePreferencesEntry(key: PreferencesKeys.serverSuggestionInfo(), { _ in + return PreferencesEntry(suggestionInfo) + }) case let .promoData(flags, expires, peer, psaType, psaMessage, pendingSuggestions, dismissedSuggestions, customPendingSuggestion, chats, users): let _ = expires