mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-07 06:28:07 +00:00
chore: clean up
This commit is contained in:
@@ -402,7 +402,10 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
if (canReply || this.isAWhatsAppChannel) {
|
||||
// Voice channels only allow private notes
|
||||
if (this.isAVoiceChannel) {
|
||||
this.replyType = REPLY_EDITOR_MODES.NOTE;
|
||||
} else if (canReply || this.isAWhatsAppChannel) {
|
||||
this.replyType = REPLY_EDITOR_MODES.REPLY;
|
||||
} else {
|
||||
this.replyType = REPLY_EDITOR_MODES.NOTE;
|
||||
@@ -797,7 +800,12 @@ export default {
|
||||
this.$store.dispatch('draftMessages/setReplyEditorMode', {
|
||||
mode,
|
||||
});
|
||||
if (canReply || this.isAWhatsAppChannel) this.replyType = mode;
|
||||
// Voice channels are restricted to private notes only
|
||||
if (this.isAVoiceChannel) {
|
||||
this.replyType = REPLY_EDITOR_MODES.NOTE;
|
||||
} else if (canReply || this.isAWhatsAppChannel) {
|
||||
this.replyType = mode;
|
||||
}
|
||||
if (this.showRichContentEditor) {
|
||||
if (this.isRecordingAudio) {
|
||||
this.toggleAudioRecorder();
|
||||
@@ -1225,7 +1233,7 @@ export default {
|
||||
:recording-audio-state="recordingAudioState"
|
||||
:send-button-text="replyButtonLabel"
|
||||
:show-audio-recorder="showAudioRecorder"
|
||||
:show-editor-toggle="isAPIInbox && !isOnPrivateNote"
|
||||
:show-editor-toggle="isAPIInbox && !isOnPrivateNote && !isAVoiceChannel"
|
||||
:show-emoji-picker="showEmojiPicker"
|
||||
:show-file-upload="showFileUpload"
|
||||
:toggle-audio-recorder-play-pause="toggleAudioRecorderPlayPause"
|
||||
|
||||
Reference in New Issue
Block a user