     fileprivate func removeToolbarRightButtonSelectors() {
         textInputbar.rightButton.removeTarget(self, action: #selector(recordAudioMessage), for: .touchDown)
         textInputbar.rightButton.removeTarget(self, action: #selector(stopAudioRecord), for: .touchUpInside)
+        textInputbar.rightButton.removeTarget(self, action: #selector(stopAudioRecord), for: .touchCancel)
         textInputbar.rightButton.removeTarget(self, action: #selector(sendMessage), for: .touchUpInside)
     }
 


        rightButton.isEnabled = false

        recorderManager = AudioMessageRecorder()
        recorderManager?.set(recorderDelegate: self)

        setupToolbarRightButtonWithAudioRecorder()
        setupTitleView()
        setupTextViewSettings()


        textInputbar.rightButton.addTarget(self, action: #selector(recordAudioMessage), for: .touchDown)
        textInputbar.rightButton.addTarget(self, action: #selector(stopAudioRecord), for: .touchUpInside)
        textInputbar.rightButton.addTarget(self, action: #selector(stopAudioRecord), for: .touchCancel)
    }

    fileprivate func setupToolbarRightButtonWithMessageSender() {
