This commit is contained in:
Isaac
2025-07-25 17:40:09 +02:00
parent b20652120e
commit b8ac955792
11 changed files with 230 additions and 121 deletions

View File

@@ -535,9 +535,9 @@ extension ChatControllerImpl {
self.currentSendStarsUndoMessageId = messageId
if let current = self.currentSendStarsUndoController {
current.content = .starsSent(context: self.context, title: title, text: textItems)
current.content = .starsSent(context: self.context, title: title, text: textItems, hasUndo: true)
} else {
let controller = UndoOverlayController(presentationData: self.presentationData, content: .starsSent(context: self.context, title: title, text: textItems), elevatedLayout: false, position: .top, action: { [weak self] action in
let controller = UndoOverlayController(presentationData: self.presentationData, content: .starsSent(context: self.context, title: title, text: textItems, hasUndo: true), elevatedLayout: false, position: .top, action: { [weak self] action in
guard let self else {
return false
}