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:
@@ -1050,7 +1050,7 @@ public final class ChatInputTextView: ChatInputTextViewImpl, UITextViewDelegate,
|
||||
}
|
||||
|
||||
public var toggleQuoteCollapse: ((NSRange) -> Void)?
|
||||
|
||||
|
||||
private let displayInternal: ChatInputTextInternal
|
||||
private let measureInternal: ChatInputTextInternal
|
||||
|
||||
@@ -1111,6 +1111,10 @@ public final class ChatInputTextView: ChatInputTextViewImpl, UITextViewDelegate,
|
||||
|
||||
self.delegate = self
|
||||
|
||||
if #available(iOS 18.0, *) {
|
||||
self.supportsAdaptiveImageGlyph = false
|
||||
}
|
||||
|
||||
self.displayInternal.updateDisplayElements = { [weak self] in
|
||||
self?.updateTextElements()
|
||||
}
|
||||
@@ -1217,7 +1221,7 @@ public final class ChatInputTextView: ChatInputTextViewImpl, UITextViewDelegate,
|
||||
|
||||
@objc public func textViewDidChange(_ textView: UITextView) {
|
||||
self.selectionChangedForEditedText = true
|
||||
|
||||
|
||||
self.updateTextContainerInset()
|
||||
|
||||
self.customDelegate?.chatInputTextNodeDidUpdateText()
|
||||
|
||||
Reference in New Issue
Block a user