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,6 +1050,7 @@ public final class ChatInputTextView: ChatInputTextViewImpl, UITextViewDelegate,
|
||||
}
|
||||
|
||||
public var toggleQuoteCollapse: ((NSRange) -> Void)?
|
||||
public var onUpdateLayout: (() -> Void)?
|
||||
|
||||
private let displayInternal: ChatInputTextInternal
|
||||
private let measureInternal: ChatInputTextInternal
|
||||
@@ -1385,6 +1386,8 @@ public final class ChatInputTextView: ChatInputTextViewImpl, UITextViewDelegate,
|
||||
for id in removedBlockQuotes {
|
||||
self.blockQuotes.removeValue(forKey: id)
|
||||
}
|
||||
|
||||
self.onUpdateLayout?()
|
||||
}
|
||||
|
||||
override public func caretRect(for position: UITextPosition) -> CGRect {
|
||||
|
||||
Reference in New Issue
Block a user