Clear shortcut id when all remote messages are deleted

This commit is contained in:
Isaac 2024-03-01 15:39:57 +04:00
parent 1db0db3929
commit 1e18bb4c80

View File

@ -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)
})
}