mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix message input height computation for paid messages
This commit is contained in:
@@ -1316,7 +1316,10 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
|
||||
let accessoryButtonInset = self.accessoryButtonInset
|
||||
let accessoryButtonSpacing = self.accessoryButtonSpacing
|
||||
|
||||
let textFieldInsets = self.textFieldInsets(metrics: metrics)
|
||||
var textFieldInsets = self.textFieldInsets(metrics: metrics)
|
||||
if self.actionButtons.frame.width > 44.0 {
|
||||
textFieldInsets.right = self.actionButtons.frame.width - 2.0
|
||||
}
|
||||
|
||||
let fieldMaxHeight = textFieldMaxHeight(maxHeight, metrics: metrics)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user