mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Precise quote support
This commit is contained in:
@@ -203,7 +203,7 @@ func preparedChatHistoryViewTransition(from fromView: ChatHistoryView?, to toVie
|
||||
if case .center = position, let quote = scrollSubject.quote {
|
||||
position = .center(.custom({ itemNode in
|
||||
if let itemNode = itemNode as? ChatMessageBubbleItemNode {
|
||||
if let quoteRect = itemNode.getQuoteRect(quote: quote) {
|
||||
if let quoteRect = itemNode.getQuoteRect(quote: quote.string, offset: quote.offset) {
|
||||
return quoteRect.midY
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user