         messageToolbar.statusChangingAction = {  messageToolbar in
 
             if let withFriend = self.conversation.withFriend {
-            var typingMessage = ["state": FayeInstantStateType.Text.description  ]
-                FayeService.sharedManager.sendPrivateMessage(typingMessage, messageType: .Instant ,userID: withFriend.userID, completion: { (result, message_id) in
+                var typingMessage = ["state": FayeInstantStateType.Text.description]
+                
+                FayeService.sharedManager.sendPrivateMessage(typingMessage, messageType: .Instant,
+                    userID: withFriend.userID, completion: { (result, message_id) in
                     println("Send typing \(result)")
                 })
             }


            if let fileURL = NSFileManager.yepMessageAudioURLWithName(audioFileName) {
                YepAudioService.sharedManager.beginRecordWithFileURL(fileURL, audioRecorderDelegate: self)
            }
        }
        

                let nickname = conversation.withFriend?.nickname {
                    let content = NSLocalizedString("\(nickname) is \(status)", comment: "")
                    self.titleView.stateInfoLabel.text = "\(content)..."
                    
                    switch status {
                        case FayeInstantStateType.Text.description:
                            self.typingResetDelay = 0.5
                        case FayeInstantStateType.Audio.description:
                            self.typingResetDelay = 2.5
                        default:
                            break
                    }
            }
            
        }
