     
     var chatView: ChatView!
     var item: ChatViewItem?
+    var keyboardObserver: Any?
     
     override func loadView() {
         let size = UIScreen.main.bounds.size

extension ChatViewController: ChatTopBarDelegate {
    
    func goBack() {
        dismiss(animated: true, completion: nil)
    }
}

        view = chatView
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        addKeyboardObserver()
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        
        removeKeyboardObserver()
    }
    
    override var prefersStatusBarHidden: Bool {
        return true
    }
