From 91cb2c02a749cd7bc0cd4729126cca83bb6c4fd8 Mon Sep 17 00:00:00 2001 From: Shadow Date: Mon, 5 Jan 2026 23:47:33 -0600 Subject: [PATCH] fix: allow optional reply body --- src/web/inbound.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/web/inbound.ts b/src/web/inbound.ts index 9c1c81659..d6aff8390 100644 --- a/src/web/inbound.ts +++ b/src/web/inbound.ts @@ -680,7 +680,10 @@ function describeReplyContext(rawMessage: proto.IMessage | undefined): { const location = extractLocationData(quoted); const locationText = location ? formatLocationText(location) : undefined; const text = extractText(quoted); - let body = [text, locationText].filter(Boolean).join("\n").trim(); + let body: string | undefined = [text, locationText] + .filter(Boolean) + .join("\n") + .trim(); if (!body) body = extractMediaPlaceholder(quoted); if (!body) { const quotedType = quoted ? getContentType(quoted) : undefined;