mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-29 00:50:40 +00:00
Clear shortcut id when all remote messages are deleted
This commit is contained in:
parent
1db0db3929
commit
1e18bb4c80
@ -65,6 +65,11 @@ final class AutomaticBusinessMessageSetupChatContents: ChatCustomContentsProtoco
|
||||
self.nextUpdateIsHoleFill = false
|
||||
|
||||
self.sourceHistoryView = view
|
||||
|
||||
if !view.entries.contains(where: { $0.message.id.namespace == Namespaces.Message.QuickReplyCloud }) {
|
||||
self.shortcutId = nil
|
||||
}
|
||||
|
||||
self.updateHistoryView(updateType: nextUpdateIsHoleFill ? .FillHole : .Generic)
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user