     }
     
     
-    open override func viewDidLayoutSubviews() {
-        super.viewDidLayoutSubviews()
-        
-//        if let toobar = inputToolbar {
-//            if toolbarHeight != toobar.bounds.height {
-//                toolbarHeight = toobar.bounds.height
-//                updateMessagesViewInsets(with: keyboardEndFrame)
-//                scrollToBottom(animated: true)
-//            }
-//        }
-    }
-    
-    
-
-    
     private func configure() {
         
         #if swift(>=3.0)

    fileprivate func updateMessagesViewInsets(with keyboradFrame: CGRect = .zero) {
        self.keyboardEndFrame = keyboradFrame
        
        let top = additionalContentInsets.top
            + topLayoutGuide.length
        
        let bottom = keyboradFrame.height + additionalContentInsets.bottom
        
        let insets = UIEdgeInsets(top: top,

        NotificationCenter.default.removeObserver(self)
    }
    
    open func didReceiveKeyboardWillChangeFrame(_ notification: Notification) {
        
        if let userInfo = notification.userInfo,
            let keyboardEndFrame = (userInfo[UIKeyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue,
