mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 17:30:12 +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.nextUpdateIsHoleFill = false
|
||||||
|
|
||||||
self.sourceHistoryView = view
|
self.sourceHistoryView = view
|
||||||
|
|
||||||
|
if !view.entries.contains(where: { $0.message.id.namespace == Namespaces.Message.QuickReplyCloud }) {
|
||||||
|
self.shortcutId = nil
|
||||||
|
}
|
||||||
|
|
||||||
self.updateHistoryView(updateType: nextUpdateIsHoleFill ? .FillHole : .Generic)
|
self.updateHistoryView(updateType: nextUpdateIsHoleFill ? .FillHole : .Generic)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user