fix: tighten WhatsApp ack reactions and migrate config (#629) (thanks @pasogott)

This commit is contained in:
Peter Steinberger
2026-01-11 04:09:14 +01:00
parent c928df7237
commit 38604acd94
7 changed files with 125 additions and 97 deletions

View File

@@ -26,6 +26,7 @@ export type ResolvedWhatsAppAccount = {
textChunkLimit?: number;
mediaMaxMb?: number;
blockStreaming?: boolean;
ackReaction?: WhatsAppAccountConfig["ackReaction"];
groups?: WhatsAppAccountConfig["groups"];
};
@@ -129,6 +130,7 @@ export function resolveWhatsAppAccount(params: {
mediaMaxMb: accountCfg?.mediaMaxMb ?? params.cfg.whatsapp?.mediaMaxMb,
blockStreaming:
accountCfg?.blockStreaming ?? params.cfg.whatsapp?.blockStreaming,
ackReaction: accountCfg?.ackReaction ?? params.cfg.whatsapp?.ackReaction,
groups: accountCfg?.groups ?? params.cfg.whatsapp?.groups,
};
}