From 8f3234cf4bbab7c170e4cd8d0a8097e1709b2c9b Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Thu, 27 Jun 2024 01:51:41 +0530 Subject: [PATCH] feat: Add video message viewing in to the user bubble in widget (#9642) --- .../widget/components/UserMessage.vue | 16 +++++++++++ .../widget/components/VideoBubble.vue | 27 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 app/javascript/widget/components/VideoBubble.vue diff --git a/app/javascript/widget/components/UserMessage.vue b/app/javascript/widget/components/UserMessage.vue index 0631b2f90..5a97422db 100755 --- a/app/javascript/widget/components/UserMessage.vue +++ b/app/javascript/widget/components/UserMessage.vue @@ -39,6 +39,14 @@ :readable-time="readableTime" @error="onImageLoadError" /> + + + +defineProps({ + url: { type: String, default: '' }, + readableTime: { type: String, default: '' }, +}); + +const emits = defineEmits(['error']); + +const onVideoError = () => { + emits('error'); +}; + +