From 3c6c57ca0e68d42e7d5bb5dbc1d6f320308f1013 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 4 Oct 2023 15:54:48 +0530 Subject: [PATCH] refactor: better variable name --- .../dashboard/components/widgets/conversation/Message.vue | 4 ++-- .../components/widgets/conversation/MessagesView.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/Message.vue b/app/javascript/dashboard/components/widgets/conversation/Message.vue index dec478299..3afadb497 100644 --- a/app/javascript/dashboard/components/widgets/conversation/Message.vue +++ b/app/javascript/dashboard/components/widgets/conversation/Message.vue @@ -189,7 +189,7 @@ export default { type: Boolean, default: false, }, - inboxSupportsReply: { + inboxSupportsReplyTo: { type: Boolean, default: false, }, @@ -275,7 +275,7 @@ export default { delete: this.hasText || this.hasAttachments, cannedResponse: this.isOutgoing && this.hasText, replyTo: false, - // replyTo: !this.data.private && this.inboxSupportsReply, + // replyTo: !this.data.private && this.inboxSupportsReplyTo, }; }, contentAttributes() { diff --git a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue index 1857a9e3b..f33230055 100644 --- a/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue +++ b/app/javascript/dashboard/components/widgets/conversation/MessagesView.vue @@ -42,7 +42,7 @@ :is-a-whatsapp-channel="isAWhatsAppChannel" :has-instagram-story="hasInstagramStory" :is-web-widget-inbox="isAWebWidgetInbox" - :inbox-supports-reply="inboxSupportsReply" + :inbox-supports-reply-to="inboxSupportsReplyTo" />
  • @@ -317,7 +317,7 @@ export default { unreadMessageCount() { return this.currentChat.unread_count || 0; }, - inboxSupportsReply() { + inboxSupportsReplyTo() { return this.inboxHasFeature(INBOX_FEATURES.REPLY_TO); }, },