feat: allow instagram reply_to [CW-2609] (#8248)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Shivam Mishra
2023-11-01 06:01:12 +05:30
committed by GitHub
parent b6584ec68b
commit 8455186e9f
5 changed files with 80 additions and 9 deletions

View File

@@ -24,7 +24,7 @@
/>
<instagram-story-reply v-if="storyUrl" :story-url="storyUrl" />
<bubble-reply-to
v-if="inReplyToMessageId && inboxSupportsReplyTo"
v-if="inReplyToMessageId && inboxSupportsReplyTo.incoming"
:message="inReplyTo"
:message-type="data.message_type"
:parent-has-attachments="hasAttachments"
@@ -184,8 +184,8 @@ export default {
default: false,
},
inboxSupportsReplyTo: {
type: Boolean,
default: false,
type: Object,
default: () => ({}),
},
inReplyTo: {
type: Object,
@@ -281,7 +281,7 @@ export default {
copy: this.hasText,
delete: this.hasText || this.hasAttachments,
cannedResponse: this.isOutgoing && this.hasText,
replyTo: !this.data.private && this.inboxSupportsReplyTo,
replyTo: !this.data.private && this.inboxSupportsReplyTo.outgoing,
};
},
contentAttributes() {