From 2ba81830f327061abf2122264c077ed81648f95a Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Mon, 30 Oct 2023 11:16:14 -0700 Subject: [PATCH] fix: Update Instagram story rendering (#8240) --- .../widgets/conversation/Message.vue | 84 +++++++------------ .../widgets/conversation/MessagesView.vue | 6 -- .../widgets/conversation/bubble/Actions.vue | 4 - .../widgets/conversation/bubble/Image.vue | 5 +- .../conversation/bubble/ImageAudioVideo.vue | 5 +- .../conversation/bubble/InstagramStory.vue | 51 +++++++++++ .../bubble/InstagramStoryErrorPlaceHolder.vue | 14 ++++ .../bubble/InstagramStoryReply.vue | 35 ++++++++ .../widgets/conversation/bubble/Video.vue | 9 +- .../instagramImageErrorPlaceholder.vue | 26 ------ 10 files changed, 140 insertions(+), 99 deletions(-) create mode 100644 app/javascript/dashboard/components/widgets/conversation/bubble/InstagramStory.vue create mode 100644 app/javascript/dashboard/components/widgets/conversation/bubble/InstagramStoryErrorPlaceHolder.vue create mode 100644 app/javascript/dashboard/components/widgets/conversation/bubble/InstagramStoryReply.vue delete mode 100644 app/javascript/dashboard/components/widgets/conversation/instagramImageErrorPlaceholder.vue diff --git a/app/javascript/dashboard/components/widgets/conversation/Message.vue b/app/javascript/dashboard/components/widgets/conversation/Message.vue index 363003982..e0027850b 100644 --- a/app/javascript/dashboard/components/widgets/conversation/Message.vue +++ b/app/javascript/dashboard/components/widgets/conversation/Message.vue @@ -22,18 +22,7 @@ :bcc="emailHeadAttributes.bcc" :is-incoming="isIncoming" /> -
- {{ $t('CONVERSATION.REPLIED_TO_STORY') }} - - -
+
+ -
@@ -89,7 +80,6 @@ :story-id="`${storyId}`" :is-a-tweet="isATweet" :is-a-whatsapp-channel="isAWhatsAppChannel" - :has-instagram-story="hasInstagramStory" :is-email="isEmailContentType" :is-private="data.private" :message-type="data.message_type" @@ -138,19 +128,18 @@ diff --git a/app/javascript/dashboard/components/widgets/conversation/bubble/ImageAudioVideo.vue b/app/javascript/dashboard/components/widgets/conversation/bubble/ImageAudioVideo.vue index 921d83b2c..22ea61405 100644 --- a/app/javascript/dashboard/components/widgets/conversation/bubble/ImageAudioVideo.vue +++ b/app/javascript/dashboard/components/widgets/conversation/bubble/ImageAudioVideo.vue @@ -4,13 +4,14 @@ v-if="isImage && !isImageError" :src="attachment.data_url" @click="onClick" - @error="onImgError()" + @error="onImgError" />