From ae69933995bfe32038e21639e8ce995ad37c34eb Mon Sep 17 00:00:00 2001 From: Flemmli97 Date: Mon, 16 Dec 2024 11:10:16 +0100 Subject: [PATCH] update wasm/warp which fixes empty message attachment --- package.json | 2 +- src/lib/wasm/RaygunStore.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d370d0785..a4c025376 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,6 @@ "uuid": "^9.0.1", "vite-plugin-node-polyfills": "^0.21.0", "voice-activity-detection": "^0.0.5", - "warp-wasm": "^1.7.0" + "warp-wasm": "^1.7.1" } } diff --git a/src/lib/wasm/RaygunStore.ts b/src/lib/wasm/RaygunStore.ts index 13e5337c9..26e6d24b4 100644 --- a/src/lib/wasm/RaygunStore.ts +++ b/src/lib/wasm/RaygunStore.ts @@ -323,6 +323,8 @@ class RaygunStore { private async sendTo(raygun: wasm.RayGunBox, conversation_id: string, message: string[], settings?: { attachments?: FileAttachment[]; replyTo?: string }): Promise { if (settings?.attachments && settings?.attachments.length > 0) { + // Check for empty messages + message = message.filter(m => m.length !== 0).length === 0 ? [] : message let result = await raygun .attach( conversation_id,