revert: "fix(meta): disable Instagram replies on Cloud during restriction" (#15020)

Reverts chatwoot/chatwoot#15005
This commit is contained in:
Muhsin Keloth
2026-07-14 14:59:41 -07:00
committed by GitHub
parent 2ac55c8728
commit 8b4f3e226e
@@ -146,7 +146,6 @@ export default {
currentUser: 'getCurrentUser',
lastEmail: 'getLastEmailInSelectedChat',
globalConfig: 'globalConfig/get',
isOnChatwootCloud: 'globalConfig/isOnChatwootCloud',
}),
currentContact() {
const senderId = this.currentChat?.meta?.sender?.id;
@@ -174,9 +173,6 @@ export default {
return this.isATwilioWhatsAppChannel && !this.isPrivate;
},
isPrivate() {
if (this.isInstagramReplyRestricted) {
return true;
}
if (
this.currentChat.can_reply ||
this.isAWhatsAppChannel ||
@@ -201,16 +197,10 @@ export default {
);
return !!stripped.trim();
},
// Instagram replies are disabled on Chatwoot Cloud during the temporary
// Meta platform restriction; private notes remain available.
isInstagramReplyRestricted() {
return this.isOnChatwootCloud && this.isAnInstagramChannel;
},
isReplyRestricted() {
return (
this.isInstagramReplyRestricted ||
(!this.currentChat?.can_reply &&
!(this.isAWhatsAppChannel || this.isAPIInbox))
!this.currentChat?.can_reply &&
!(this.isAWhatsAppChannel || this.isAPIInbox)
);
},
inboxId() {
@@ -480,10 +470,7 @@ export default {
return;
}
if (
!this.isInstagramReplyRestricted &&
(canReply || this.isAWhatsAppChannel || this.isAPIInbox)
) {
if (canReply || this.isAWhatsAppChannel || this.isAPIInbox) {
this.replyType = REPLY_EDITOR_MODES.REPLY;
} else {
this.replyType = REPLY_EDITOR_MODES.NOTE;
@@ -950,10 +937,7 @@ export default {
this.$store.dispatch('draftMessages/setReplyEditorMode', {
mode,
});
if (
!this.isInstagramReplyRestricted &&
(canReply || this.isAWhatsAppChannel || this.isAPIInbox)
)
if (canReply || this.isAWhatsAppChannel || this.isAPIInbox)
this.replyType = mode;
if (this.isRecordingAudio) {
this.toggleAudioRecorder();