             object:nil)
     }
     
+    func displayEmojiKeyboard()
+    {
+        UIApplication.shared.keyWindow!.endEditing(true)
+        
+        
+    }
+    
     //MARK: imagePicker delegate
     
     func imagePickerController(_ picker:UIImagePickerController, didFinishPickingMediaWithInfo info:[String:Any])

            keyboardHeight = 0
        }
        
        layoutInputBottom.constant = -keyboardHeight
        conversation.collectionView.contentOffset = CGPoint(x:0, y:currentOffset.y + keyboardHeight)
        
        UIView.animate(withDuration:kAnimationDuration)
        { [weak self] in

        let keyRect:CGRect = keyboardFrameValue.cgRectValue
        let yOrigin = keyRect.origin.y
        let screenHeight:CGFloat = UIScreen.main.bounds.size.height
        let keyboardHeight:CGFloat
        
        if yOrigin < screenHeight
