feat: Add reply editor mode to the store (#7515)

This commit is contained in:
Muhsin Keloth
2023-07-13 14:56:53 +05:30
committed by GitHub
parent 19ff738211
commit 50a927bac2
6 changed files with 54 additions and 0 deletions

View File

@@ -781,6 +781,9 @@ export default {
},
setReplyMode(mode = REPLY_EDITOR_MODES.REPLY) {
const { can_reply: canReply } = this.currentChat;
this.$store.dispatch('draftMessages/setReplyEditorMode', {
mode,
});
if (canReply || this.isAWhatsAppChannel) this.replyType = mode;
if (this.showRichContentEditor) {
if (this.isRecordingAudio) {