                 
                 
             } else {
+                
+                self.micOn = false
+                
                 self.audioButton.hidden = true;
                 
                 self.rightButton.tintColor = appStyle.chatAttachColor

            }
            
        } else {
            self.stickersButton.hidden = false
//            if(self.audioButton.hidden){
//                
//                self.rightButton.tintColor = appStyle.chatSendColor
//                self.rightButton.setImage(UIImage.tinted("aa_keyboard", color: appStyle.chatAttachColor), forState: UIControlState.Normal)
//                self.rightButton.setTitle("", forState: UIControlState.Normal)
//                self.rightButton.enabled = true
//                
//            } else {
//                
//                self.rightButton.tintColor = appStyle.chatSendColor
//                self.rightButton.setImage(UIImage.tinted("aa_keyboard", color: appStyle.chatAttachColor), forState: UIControlState.Normal)
//                self.rightButton.setTitle("", forState: UIControlState.Normal)
//                self.rightButton.enabled = true
//                
//            }
            
            self.micOn = true
            
        }
        

            super.didPressRightButton(sender)
            
        } else {

            if(self.audioButton.hidden){
                self.textView.resignFirstResponder()
                
                self.micOn = true
                
                self.rightButton.tintColor = appStyle.chatAttachColor
                self.rightButton.setImage(UIImage.bundled("keyboard_button"), forState: UIControlState.Normal)
