Various fixes

This commit is contained in:
Ilya Laktyushin
2024-01-04 17:15:12 +04:00
parent 340cc2c385
commit f02722c954
27 changed files with 732 additions and 154 deletions

View File

@@ -850,7 +850,7 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
self.counterTextNode = ImmediateTextNode()
self.counterTextNode.textAlignment = .center
self.viewOnceButton = ChatRecordingViewOnceButtonNode()
self.viewOnceButton = ChatRecordingViewOnceButtonNode(icon: .viewOnce)
super.init()
@@ -2634,7 +2634,7 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
}
transition.updateAlpha(node: self.viewOnceButton, alpha: viewOnceIsVisible ? 1.0 : 0.0)
transition.updateTransformScale(node: self.viewOnceButton, scale: viewOnceIsVisible ? 1.0 : 0.01)
if let _ = interfaceState.renderedPeer?.peer as? TelegramUser {
if let user = interfaceState.renderedPeer?.peer as? TelegramUser, user.id != interfaceState.accountPeerId && user.botInfo == nil {
self.viewOnceButton.isHidden = false
} else {
self.viewOnceButton.isHidden = true