Skip to content

Commit

Permalink
update wasm/warp which fixes empty message attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 committed Dec 16, 2024
1 parent 74c0d05 commit ae69933
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 2 additions & 0 deletions src/lib/wasm/RaygunStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ class RaygunStore {

private async sendTo(raygun: wasm.RayGunBox, conversation_id: string, message: string[], settings?: { attachments?: FileAttachment[]; replyTo?: string }): Promise<SendMessageResult> {
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,
Expand Down

0 comments on commit ae69933

Please sign in to comment.