 
         return CGSizeMake(collectionViewWidth, 60)
     }
+
+    func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
+        view.endEditing(true)
+    }
 }


    deinit {
        updateMessageToolbarWithKeyboardChange = false
    }

    override func viewDidLoad() {

        if let userInfo = notification.userInfo {
            let animationDuration: NSTimeInterval = (userInfo[UIKeyboardAnimationDurationUserInfoKey] as! NSNumber).doubleValue

            self.setConversaitonCollectionViewOriginalContentInset()

            UIView.animateWithDuration(animationDuration, delay: 0, options: .BeginFromCurrentState, animations: { () -> Void in
                self.messageToolbarBottomConstraint.constant = 0
                self.view.layoutIfNeeded()

            }, completion: { (finished) -> Void in
            })
        }
    }
