fix: allow optional reply body
This commit is contained in:
@@ -680,7 +680,10 @@ function describeReplyContext(rawMessage: proto.IMessage | undefined): {
|
|||||||
const location = extractLocationData(quoted);
|
const location = extractLocationData(quoted);
|
||||||
const locationText = location ? formatLocationText(location) : undefined;
|
const locationText = location ? formatLocationText(location) : undefined;
|
||||||
const text = extractText(quoted);
|
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) body = extractMediaPlaceholder(quoted);
|
||||||
if (!body) {
|
if (!body) {
|
||||||
const quotedType = quoted ? getContentType(quoted) : undefined;
|
const quotedType = quoted ? getContentType(quoted) : undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user