This commit is contained in:
Ali
2023-09-01 12:34:29 +04:00
parent c34f459a31
commit eb78d075d7
15 changed files with 207 additions and 81 deletions

View File

@@ -3118,8 +3118,12 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
}
}
public func scrollToStories() {
public func scrollToStories(peerId: EnginePeer.Id? = nil) {
self.chatListDisplayNode.scrollToStories(animated: false)
if let peerId, let componentView = self.chatListHeaderView(), let storyPeerListView = componentView.storyPeerListView() {
storyPeerListView.ensureItemVisible(peerId: peerId)
}
}
public func scrollToStoriesAnimated() {