From 79412ba2c697f418cb9f7c31a5fc1476bd1c6587 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 11 Dec 2023 16:54:47 +0530 Subject: [PATCH] feat: disable reply to message in WhatsApp via 360 dialog (#8500) --- .../components/widgets/conversation/MessagesView.vue | 10 ++++++---- .../components/widgets/conversation/ReplyBox.vue | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue index 10b1dce32..d9e255c6d 100644 --- a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue @@ -284,10 +284,12 @@ export default { return this.currentChat.unread_count || 0; }, inboxSupportsReplyTo() { - return { - incoming: this.inboxHasFeature(INBOX_FEATURES.REPLY_TO), - outgoing: this.inboxHasFeature(INBOX_FEATURES.REPLY_TO_OUTGOING), - }; + const incoming = this.inboxHasFeature(INBOX_FEATURES.REPLY_TO); + const outgoing = + this.inboxHasFeature(INBOX_FEATURES.REPLY_TO_OUTGOING) && + !this.is360DialogWhatsAppChannel; + + return { incoming, outgoing }; }, }, diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index e18e1c0e2..81cc294b3 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -275,7 +275,8 @@ export default { return ( this.inReplyTo?.id && !this.isPrivate && - this.inboxHasFeature(INBOX_FEATURES.REPLY_TO) + this.inboxHasFeature(INBOX_FEATURES.REPLY_TO) && + !this.is360DialogWhatsAppChannel ); }, showRichContentEditor() {