mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	chore: Reply window fixes (#11242)
- Fixed the can reply window links. - Added the supported file types for Instagram.
This commit is contained in:
		@@ -226,16 +226,23 @@ export default {
 | 
			
		||||
      return this.$t('CONVERSATION.CANNOT_REPLY');
 | 
			
		||||
    },
 | 
			
		||||
    replyWindowLink() {
 | 
			
		||||
      if (this.isAWhatsAppChannel) {
 | 
			
		||||
      if (this.isAFacebookInbox || this.isAInstagramChannel) {
 | 
			
		||||
        return REPLY_POLICY.FACEBOOK;
 | 
			
		||||
      }
 | 
			
		||||
      if (this.isAWhatsAppCloudChannel) {
 | 
			
		||||
        return REPLY_POLICY.WHATSAPP_CLOUD;
 | 
			
		||||
      }
 | 
			
		||||
      if (!this.isAPIInbox) {
 | 
			
		||||
        return REPLY_POLICY.TWILIO_WHATSAPP;
 | 
			
		||||
      }
 | 
			
		||||
      return '';
 | 
			
		||||
    },
 | 
			
		||||
    replyWindowLinkText() {
 | 
			
		||||
      if (this.isAWhatsAppChannel) {
 | 
			
		||||
      if (
 | 
			
		||||
        this.isAWhatsAppChannel ||
 | 
			
		||||
        this.isAFacebookInbox ||
 | 
			
		||||
        this.isAInstagramChannel
 | 
			
		||||
      ) {
 | 
			
		||||
        return this.$t('CONVERSATION.24_HOURS_WINDOW');
 | 
			
		||||
      }
 | 
			
		||||
      if (!this.isAPIInbox) {
 | 
			
		||||
@@ -485,7 +492,7 @@ export default {
 | 
			
		||||
    <Banner
 | 
			
		||||
      v-if="!currentChat.can_reply"
 | 
			
		||||
      color-scheme="alert"
 | 
			
		||||
      class="mt-2 mx-2 rounded-lg overflow-hidden"
 | 
			
		||||
      class="mx-2 mt-2 overflow-hidden rounded-lg"
 | 
			
		||||
      :banner-message="replyWindowBannerMessage"
 | 
			
		||||
      :href-link="replyWindowLink"
 | 
			
		||||
      :href-link-text="replyWindowLinkText"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user