no message

This commit is contained in:
Peter
2018-09-20 21:26:09 +01:00
parent 86d8e59ad8
commit 92b501ae13
14 changed files with 94 additions and 53 deletions

View File

@@ -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