mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix empty proxy update
This commit is contained in:
parent
9db5eb726d
commit
59f69bea05
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue