chore: clean up

This commit is contained in:
Sojan Jose
2025-07-17 04:53:37 -07:00
parent f8a8679d88
commit 669241801e
15 changed files with 303 additions and 338 deletions

View File

@@ -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"