fix(channels): align command-body parsing sources

This commit is contained in:
Peter Steinberger
2026-03-01 23:11:20 +00:00
parent 4c43fccb3e
commit 8e48520d74
5 changed files with 16 additions and 6 deletions

View File

@@ -64,6 +64,7 @@ export function createSignalEventHandler(deps: SignalEventHandlerDeps) {
groupName?: string;
isGroup: boolean;
bodyText: string;
commandBody: string;
timestamp?: number;
messageId?: string;
mediaPath?: string;
@@ -147,7 +148,8 @@ export function createSignalEventHandler(deps: SignalEventHandlerDeps) {
BodyForAgent: entry.bodyText,
InboundHistory: inboundHistory,
RawBody: entry.bodyText,
CommandBody: entry.bodyText,
CommandBody: entry.commandBody,
BodyForCommands: entry.commandBody,
From: entry.isGroup
? `group:${entry.groupId ?? "unknown"}`
: `signal:${entry.senderRecipient}`,
@@ -691,6 +693,7 @@ export function createSignalEventHandler(deps: SignalEventHandlerDeps) {
groupName,
isGroup,
bodyText,
commandBody: messageText,
timestamp: envelope.timestamp ?? undefined,
messageId,
mediaPath,