mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various fixes
This commit is contained in:
@@ -2497,6 +2497,18 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
controllers.append(chatController)
|
||||
}
|
||||
navigationController.setViewControllers(controllers, animated: true)
|
||||
|
||||
Queue.mainQueue().after(0.3) {
|
||||
let tooltipController = UndoOverlayController(
|
||||
presentationData: presentationData,
|
||||
content: .forward(savedMessages: false, text: presentationData.strings.Gift_Transfer_Success("\(gift) #\(gift.number)", peer.displayTitle(strings: presentationData.strings, displayOrder: presentationData.nameDisplayOrder)).string),
|
||||
elevatedLayout: false,
|
||||
action: { _ in return true }
|
||||
)
|
||||
if let lastController = controllers.last as? ViewController {
|
||||
lastController.present(tooltipController, in: .window(.root))
|
||||
}
|
||||
}
|
||||
})
|
||||
controller.present(alertController, in: .window(.root))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user