chore: Disable API channel reply editor outside 24h window (#13664)

This commit is contained in:
Sivin Varghese
2026-02-26 16:05:05 +05:30
committed by GitHub
parent 3ddab3ab26
commit 109b43aadb
3 changed files with 14 additions and 5 deletions

View File

@@ -380,7 +380,11 @@ export default {
@click="$emit('selectContentTemplate')" @click="$emit('selectContentTemplate')"
/> />
<VideoCallButton <VideoCallButton
v-if="(isAWebWidgetInbox || isAPIInbox) && !isOnPrivateNote" v-if="
(isAWebWidgetInbox || isAPIInbox) &&
!isOnPrivateNote &&
!isEditorDisabled
"
:conversation-id="conversationId" :conversation-id="conversationId"
/> />
<transition name="modal-fade"> <transition name="modal-fade">

View File

@@ -200,9 +200,13 @@ export default {
}, },
messagePlaceHolder() { messagePlaceHolder() {
if (this.isEditorDisabled) { if (this.isEditorDisabled) {
return this.isAWhatsAppChannel if (this.isAWhatsAppChannel) {
? this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED_WHATSAPP') return this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED_WHATSAPP');
: this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED'); }
if (this.isAPIInbox) {
return this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED_API');
}
return this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED');
} }
return this.isPrivate return this.isPrivate
? this.$t('CONVERSATION.FOOTER.PRIVATE_MSG_INPUT') ? this.$t('CONVERSATION.FOOTER.PRIVATE_MSG_INPUT')
@@ -427,7 +431,7 @@ export default {
}, },
isEditorDisabled() { isEditorDisabled() {
return ( return (
this.isAWhatsAppChannel && (this.isAWhatsAppChannel || this.isAPIInbox) &&
!this.isOnPrivateNote && !this.isOnPrivateNote &&
!this.currentChat.can_reply !this.currentChat.can_reply
); );

View File

@@ -192,6 +192,7 @@
"PRIVATE_MSG_INPUT": "Shift + enter for new line. This will be visible only to Agents", "PRIVATE_MSG_INPUT": "Shift + enter for new line. This will be visible only to Agents",
"MESSAGING_RESTRICTED": "You cannot reply to this conversation", "MESSAGING_RESTRICTED": "You cannot reply to this conversation",
"MESSAGING_RESTRICTED_WHATSAPP": "You can only reply using a template message due to 24-hour message window restriction", "MESSAGING_RESTRICTED_WHATSAPP": "You can only reply using a template message due to 24-hour message window restriction",
"MESSAGING_RESTRICTED_API": "You can only reply using a template message due to message window restriction",
"MESSAGE_SIGNATURE_NOT_CONFIGURED": "Message signature is not configured, please configure it in profile settings.", "MESSAGE_SIGNATURE_NOT_CONFIGURED": "Message signature is not configured, please configure it in profile settings.",
"COPILOT_MSG_INPUT": "Give copilot additional prompts, or ask anything else... Press enter to send follow-up", "COPILOT_MSG_INPUT": "Give copilot additional prompts, or ask anything else... Press enter to send follow-up",
"CLICK_HERE": "Click here to update", "CLICK_HERE": "Click here to update",