Rich bubble: scrollToAnchor + getAnchorRect

Adds a base getAnchorRect on ChatMessageBubbleContentNode, the rich-bubble
override (including titleHeight in details recursion), bubble-item
forwarding to content nodes, ChatControllerInteraction.scrollToMessageIdWithAnchor,
and a scrollToAnchor that lands the anchor at the top of the content area /
its line. Threads anchor/scroll params through ChatController and related
call sites.
This commit is contained in:
isaac 2026-05-01 17:55:19 +02:00
parent f29af03cd7
commit fdb2f369ec
26 changed files with 1148 additions and 100 deletions

View file

@ -5064,7 +5064,7 @@ public final class ChatHistoryListNodeImpl: ListViewImpl, ChatHistoryNode, ChatH
}
}
func scrollToMessage(index: MessageIndex) {
func scrollToMessage(index: MessageIndex, offset: CGFloat = 0.0) {
self.appliedScrollToMessageId = nil
self.scrollToMessageIdPromise.set(.single(index))
}