diff --git a/app/javascript/dashboard/components-next/message/Message.vue b/app/javascript/dashboard/components-next/message/Message.vue index e63ea1ec3..ecef5605c 100644 --- a/app/javascript/dashboard/components-next/message/Message.vue +++ b/app/javascript/dashboard/components-next/message/Message.vue @@ -23,6 +23,7 @@ import AttachmentsBubble from './bubbles/Attachments.vue'; import EmailBubble from './bubbles/Email/Index.vue'; import UnsupportedBubble from './bubbles/Unsupported.vue'; import ContactBubble from './bubbles/Contact.vue'; +import DyteBubble from './bubbles/Dyte.vue'; const LocationBubble = defineAsyncComponent( () => import('./bubbles/Location.vue') ); @@ -79,6 +80,7 @@ import MessageMeta from './MessageMeta.vue'; * @property {string} content - The message content */ +// eslint-disable-next-line vue/define-macros-order const props = defineProps({ id: { type: Number, required: true }, messageType: { @@ -250,6 +252,10 @@ const componentToRender = computed(() => { return UnsupportedBubble; } + if (props.contentAttributes.type === 'dyte') { + return DyteBubble; + } + if (props.contentAttributes.imageType === 'story_mention') { return InstagramStoryBubble; } diff --git a/app/javascript/dashboard/components-next/message/bubbles/BaseAttachment.vue b/app/javascript/dashboard/components-next/message/bubbles/BaseAttachment.vue index 59cf576bf..a2d215721 100644 --- a/app/javascript/dashboard/components-next/message/bubbles/BaseAttachment.vue +++ b/app/javascript/dashboard/components-next/message/bubbles/BaseAttachment.vue @@ -1,4 +1,3 @@ - + + + + + + + {{ $t('INTEGRATION_SETTINGS.DYTE.LEAVE_THE_ROOM') }} + + + + {{ '' }} + + + + + diff --git a/app/javascript/dashboard/components-next/message/stories/Bubbles.story.vue b/app/javascript/dashboard/components-next/message/stories/Bubbles.story.vue index ad607e15b..9869cbd02 100644 --- a/app/javascript/dashboard/components-next/message/stories/Bubbles.story.vue +++ b/app/javascript/dashboard/components-next/message/stories/Bubbles.story.vue @@ -290,6 +290,27 @@ const igReel = computed(() => ...baseSenderData.value, }) ); + +const dyte = computed(() => { + return getMessage({ + messageType: 1, + contentType: 'integrations', + contentAttributes: { + type: 'dyte', + data: { + meetingId: 'f16bebe6-08b9-4593-899a-849f59c47397', + roomName: 'zcufnc-adbjcg', + }, + }, + senderId: 1, + sender: { + id: 1, + name: 'Shivam Mishra', + availableName: 'Shivam Mishra', + type: 'user', + }, + }); +}); @@ -331,7 +352,7 @@ const igReel = computed(() => - + @@ -341,8 +362,6 @@ const igReel = computed(() => - - @@ -353,6 +372,11 @@ const igReel = computed(() => + + + + +