sendPayload: explicit text fallback in text-only path

This commit is contained in:
David Friedland
2026-03-01 21:28:00 -08:00
committed by Peter Steinberger
parent ebe54e6903
commit 47ef180fb7
6 changed files with 6 additions and 6 deletions

View File

@@ -539,7 +539,7 @@ export const zalouserPlugin: ChannelPlugin<ResolvedZalouserAccount> = {
}
return lastResult;
}
return zalouserPlugin.outbound!.sendText!({ ...ctx });
return zalouserPlugin.outbound!.sendText!({ ...ctx, text: ctx.payload.text ?? "" });
},
sendText: async ({ to, text, accountId, cfg }) => {
const account = resolveZalouserAccountSync({ cfg: cfg, accountId });