feat: add dyte bubble

This commit is contained in:
Shivam Mishra
2024-12-11 18:25:13 +05:30
parent 9807ed2fd7
commit ad6864fd18
4 changed files with 147 additions and 7 deletions
@@ -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;
}