From 095562bbb735c7071e9513f19f292d83b43689ae Mon Sep 17 00:00:00 2001 From: Dominik Date: Sun, 9 Aug 2026 05:23:28 +0200 Subject: [PATCH] FIX - extend Flare chat attachments --- .../components/MessageAttachmentBubble.vue | 33 +- frontend/src/stores/flare.test.ts | 41 +++ frontend/src/stores/flare.ts | 9 +- frontend/src/stores/phone.ts | 18 + frontend/src/types/flare.ts | 19 +- frontend/src/views/apps/FlareApp.vue | 334 +++++++++++++++++- frontend/testserver/index.cjs | 27 +- sky_phone/config/locales/en.lua | 3 +- sky_phone/source/server/db_migrate.lua | 7 + sky_phone/source/server/flare.lua | 136 +++++-- sky_phone/sql/install.sql | 3 + 11 files changed, 583 insertions(+), 47 deletions(-) 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