no message

This commit is contained in:
Peter
2018-08-31 04:26:44 +03:00
parent ab261ecbc7
commit 368a96b291
305 changed files with 11745 additions and 5307 deletions

View File

@@ -91,7 +91,8 @@ public class ChatListController: TelegramController, UIViewControllerPreviewingD
self?.chatListDisplayNode.chatListNode.scrollToPosition(.top)
}
self.scrollToTopWithTabBar = { [weak self] in
self?.chatListDisplayNode.chatListNode.scrollToPosition(.auto)
self?.chatListDisplayNode.chatListNode.scrollToPosition(.top)
//.auto for unread navigation
}
let hasProxy = account.postbox.preferencesView(keys: [PreferencesKeys.proxySettings])
@@ -429,7 +430,7 @@ public class ChatListController: TelegramController, UIViewControllerPreviewingD
}
}
self.badgeIconDisposable = (self.chatListDisplayNode.chatListNode.scrollToTopOption
/*self.badgeIconDisposable = (self.chatListDisplayNode.chatListNode.scrollToTopOption
|> distinctUntilChanged
|> deliverOnMainQueue).start(next: { [weak self] option in
guard let strongSelf = self else {
@@ -443,7 +444,7 @@ public class ChatListController: TelegramController, UIViewControllerPreviewingD
case .unread:
strongSelf.tabBarItem.selectedImage = tabImageUnread
}
})
})*/
self.displayNodeDidLoad()
}