mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -87,6 +87,7 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
||||
self.animationBackgroundColor = UIColor(rgb: 0x474747)
|
||||
}
|
||||
|
||||
var isUserInteractionEnabled = false
|
||||
switch content {
|
||||
case let .removedChat(text):
|
||||
self.avatarNode = nil
|
||||
@@ -696,7 +697,11 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
||||
}), textAlignment: .natural)
|
||||
self.textNode.attributedText = attributedText
|
||||
self.textNode.maximumNumberOfLines = 2
|
||||
|
||||
|
||||
if text.contains("](") {
|
||||
isUserInteractionEnabled = true
|
||||
}
|
||||
|
||||
displayUndo = false
|
||||
self.originalRemainingSeconds = 3
|
||||
|
||||
@@ -879,6 +884,9 @@ final class UndoOverlayControllerNode: ViewControllerTracingNode {
|
||||
self.isUserInteractionEnabled = false
|
||||
}
|
||||
}
|
||||
if isUserInteractionEnabled {
|
||||
self.isUserInteractionEnabled = true
|
||||
}
|
||||
|
||||
self.titleNode.isUserInteractionEnabled = false
|
||||
self.textNode.isUserInteractionEnabled = self.textNode.tapAttributeAction != nil
|
||||
|
||||
Reference in New Issue
Block a user