Story improvements

This commit is contained in:
Ali
2023-06-09 20:17:50 +04:00
parent f8ecc999e6
commit 434e9dd22d
31 changed files with 443 additions and 61 deletions

View File

@@ -316,6 +316,12 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
guard let strongSelf = self else {
return
}
if "".isEmpty {
strongSelf.scrollToStories()
return
}
if strongSelf.chatListDisplayNode.searchDisplayController != nil {
strongSelf.deactivateSearch(animated: true)
} else {
@@ -2494,7 +2500,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController
}
public func scrollToStories() {
self.chatListDisplayNode.scrollToStories()
}
private func updateLayout(layout: ContainerViewLayout, transition: ContainedViewLayoutTransition) {