mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
no message
This commit is contained in:
@@ -93,9 +93,26 @@ public class ChatListController: TelegramController, UIViewControllerPreviewingD
|
||||
self?.chatListDisplayNode.chatListNode.scrollToPosition(.top)
|
||||
}
|
||||
self.scrollToTopWithTabBar = { [weak self] in
|
||||
self?.chatListDisplayNode.chatListNode.scrollToPosition(.top)
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
if strongSelf.chatListDisplayNode.searchDisplayController != nil {
|
||||
strongSelf.deactivateSearch(animated: true)
|
||||
} else {
|
||||
strongSelf.chatListDisplayNode.chatListNode.scrollToPosition(.top)
|
||||
}
|
||||
//.auto for unread navigation
|
||||
}
|
||||
self.longTapWithTabBar = { [weak self] in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
if strongSelf.chatListDisplayNode.searchDisplayController != nil {
|
||||
strongSelf.deactivateSearch(animated: true)
|
||||
} else {
|
||||
strongSelf.chatListDisplayNode.chatListNode.scrollToPosition(.auto)
|
||||
}
|
||||
}
|
||||
|
||||
let hasProxy = account.postbox.preferencesView(keys: [PreferencesKeys.proxySettings])
|
||||
|> map { preferences -> (Bool, Bool) in
|
||||
|
||||
Reference in New Issue
Block a user