         
         // Update data source
         messages.append(message)
+        print("\t\tJust added a message")
         
         // Efficiently update by updating / inserting only the cells that need to be
         //self.tableView.beginUpdates()

    @IBOutlet weak var expandingTextView: UITextView!
    
    
    /** Asks the view to calculate and return the size that best fits the specified size. */
    override func sizeThatFits(_ size: CGSize) -> CGSize {
        return CGSize(width: size.width, height: ChatInputAccessoryView.preferredHeight)

    /** Dismiss the custom keyboard (the input accessory) */
    func dismissKeyboard() {
        chatInputAccessoryView.expandingTextView.resignFirstResponder()
        self.becomeFirstResponder()
    }
    
    
