feat: remove feature flag checks for message reply to (#8352)

This commit is contained in:
Shivam Mishra
2023-11-15 13:05:58 +05:30
committed by GitHub
parent cd217a3f86
commit b411b6ca21
8 changed files with 3 additions and 33 deletions

View File

@@ -22,7 +22,6 @@
<drag-wrapper
class="space-y-2"
direction="right"
:disabled="!allowReplyTo"
@dragged="toggleReply"
>
<AgentMessageBubble
@@ -58,7 +57,6 @@
</drag-wrapper>
<div class="flex flex-col justify-end">
<message-reply-button
v-if="allowReplyTo"
class="transition-opacity delay-75 opacity-0 group-hover:opacity-100 sm:opacity-0"
@click="toggleReply"
/>
@@ -127,7 +125,6 @@ export default {
data() {
return {
hasImageError: false,
allowReplyTo: window.chatwootWebChannel.allowReplyTo || false,
};
},
computed: {
@@ -217,7 +214,6 @@ export default {
};
},
hasReplyTo() {
if (!this.allowReplyTo) return false;
return this.replyTo && (this.replyTo.content || this.replyTo.attachments);
},
},