no message

This commit is contained in:
Peter
2016-10-09 21:56:04 +02:00
parent a68d6f31c1
commit bcecb46e94
25 changed files with 1935 additions and 811 deletions

View File

@@ -446,10 +446,9 @@ public class ChatController: ViewController {
self.navigationActionDisposable.set((self.peerView.get()
|> take(1)
|> deliverOnMainQueue).start(next: { [weak self] peerView in
if let strongSelf = self, let peer = peerView.peers[peerView.peerId] {
if let chatInfoController = chatInfoController(account: strongSelf.account, peer: peer) {
(strongSelf.navigationController as? NavigationController)?.pushViewController(chatInfoController)
}
if let strongSelf = self, let _ = peerView.peers[peerView.peerId] {
let chatInfoController = PeerInfoController(account: strongSelf.account, peerId: peerView.peerId)
(strongSelf.navigationController as? NavigationController)?.pushViewController(chatInfoController)
}
}))
break