mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
[WIP] Entity input panel
This commit is contained in:
@@ -628,7 +628,7 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
||||
|
||||
displayUndo = false
|
||||
self.originalRemainingSeconds = 3
|
||||
case let .sticker(context, file, title, text, customUndoText):
|
||||
case let .sticker(context, file, title, text, customUndoText, _):
|
||||
self.avatarNode = nil
|
||||
self.iconNode = nil
|
||||
self.iconCheckNode = nil
|
||||
@@ -885,7 +885,7 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
||||
} else {
|
||||
self.isUserInteractionEnabled = false
|
||||
}
|
||||
case let .sticker(_, _, _, _, undoText):
|
||||
case let .sticker(_, _, _, _, undoText, _):
|
||||
self.isUserInteractionEnabled = undoText != nil
|
||||
case .dice:
|
||||
self.panelWrapperNode.clipsToBounds = true
|
||||
@@ -963,7 +963,14 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
||||
}
|
||||
|
||||
@objc private func undoButtonPressed() {
|
||||
let _ = self.action(.undo)
|
||||
switch self.content {
|
||||
case let .sticker(_, _, _, _, _, customAction):
|
||||
if let customAction = customAction {
|
||||
customAction()
|
||||
}
|
||||
default:
|
||||
let _ = self.action(.undo)
|
||||
}
|
||||
self.dismiss()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user