no message

This commit is contained in:
Ilya Laktyushin
2018-10-13 20:03:49 +01:00
parent 2e61ee3152
commit 8ccb55c084
13 changed files with 1952 additions and 1819 deletions

View File

@@ -618,13 +618,13 @@ public class ChatListController: TelegramController, KeyShortcutResponder, UIVie
}
let chatController = ChatController(account: self.account, chatLocation: .peer(peerId), mode: .standard(previewing: true))
chatController.peekActions = .remove({ [weak self] in
if let strongSelf = self {
let _ = removeRecentPeer(account: strongSelf.account, peerId: peerId).start()
let searchContainer = strongSelf.chatListDisplayNode.searchDisplayController?.contentNode as? ChatListSearchContainerNode
searchContainer?.removePeerFromTopPeers(peerId)
}
})
// chatController.peekActions = .remove({ [weak self] in
// if let strongSelf = self {
// let _ = removeRecentPeer(account: strongSelf.account, peerId: peerId).start()
// let searchContainer = strongSelf.chatListDisplayNode.searchDisplayController?.contentNode as? ChatListSearchContainerNode
// searchContainer?.removePeerFromTopPeers(peerId)
// }
// })
chatController.canReadHistory.set(false)
chatController.containerLayoutUpdated(ContainerViewLayout(size: contentSize, metrics: LayoutMetrics(), intrinsicInsets: UIEdgeInsets(), safeInsets: UIEdgeInsets(), statusBarHeight: nil, inputHeight: nil, standardInputHeight: 216.0, inputHeightIsInteractivellyChanging: false), transition: .immediate)
return chatController