fix: Instagram story with video not rendering (#7184)
* fix: instagram story with video not rendering * chore: Minor fixes --------- Co-authored-by: Tejaswini Chile <tejaswini@chatwoot.com>
This commit is contained in:
@@ -25,10 +25,14 @@
|
|||||||
<blockquote v-if="storyReply" class="story-reply-quote">
|
<blockquote v-if="storyReply" class="story-reply-quote">
|
||||||
<span>{{ $t('CONVERSATION.REPLIED_TO_STORY') }}</span>
|
<span>{{ $t('CONVERSATION.REPLIED_TO_STORY') }}</span>
|
||||||
<bubble-image
|
<bubble-image
|
||||||
v-if="!hasStoryError"
|
v-if="!hasImgStoryError && storyUrl"
|
||||||
:url="storyUrl"
|
:url="storyUrl"
|
||||||
@error="onStoryLoadError"
|
@error="onStoryLoadError"
|
||||||
/>
|
/>
|
||||||
|
<bubble-video
|
||||||
|
v-else-if="hasImgStoryError && storyUrl"
|
||||||
|
:url="storyUrl"
|
||||||
|
/>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<bubble-text
|
<bubble-text
|
||||||
v-if="data.content"
|
v-if="data.content"
|
||||||
@@ -200,7 +204,7 @@ export default {
|
|||||||
hasImageError: false,
|
hasImageError: false,
|
||||||
contextMenuPosition: {},
|
contextMenuPosition: {},
|
||||||
showBackgroundHighlight: false,
|
showBackgroundHighlight: false,
|
||||||
hasStoryError: false,
|
hasImgStoryError: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -429,12 +433,12 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
data() {
|
data() {
|
||||||
this.hasImageError = false;
|
this.hasImageError = false;
|
||||||
this.hasStoryError = false;
|
this.hasImgStoryError = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.hasImageError = false;
|
this.hasImageError = false;
|
||||||
this.hasStoryError = false;
|
this.hasImgStoryError = false;
|
||||||
bus.$on(BUS_EVENTS.ON_MESSAGE_LIST_SCROLL, this.closeContextMenu);
|
bus.$on(BUS_EVENTS.ON_MESSAGE_LIST_SCROLL, this.closeContextMenu);
|
||||||
this.setupHighlightTimer();
|
this.setupHighlightTimer();
|
||||||
},
|
},
|
||||||
@@ -464,7 +468,7 @@ export default {
|
|||||||
this.hasImageError = true;
|
this.hasImageError = true;
|
||||||
},
|
},
|
||||||
onStoryLoadError() {
|
onStoryLoadError() {
|
||||||
this.hasStoryError = true;
|
this.hasImgStoryError = true;
|
||||||
},
|
},
|
||||||
openContextMenu(e) {
|
openContextMenu(e) {
|
||||||
const shouldSkipContextMenu =
|
const shouldSkipContextMenu =
|
||||||
|
|||||||
Reference in New Issue
Block a user