diff --git a/frontend/src/components/MessageAttachmentBubble.vue b/frontend/src/components/MessageAttachmentBubble.vue index a8372f1..729eaed 100644 --- a/frontend/src/components/MessageAttachmentBubble.vue +++ b/frontend/src/components/MessageAttachmentBubble.vue @@ -2,9 +2,15 @@ import { Camera, Pause, Play } from 'lucide-vue-next' import { computed, ref } from 'vue' -import type { SmsMessage } from '@/types/messages' +import type { SmsMessageType } from '@/types/messages' -const props = defineProps<{ message: SmsMessage }>() +type MessageAttachment = { + media_asset_id: string | null + media_duration_ms: number | null + message_type: SmsMessageType +} + +const props = defineProps<{ message: MessageAttachment }>() const playing = ref(false) const video = ref() @@ -66,7 +72,13 @@ function durationLabel(milliseconds: number | null): string { class="messages-attachment messages-attachment--image" :style="{ background }" > - +
- GIF + GIF