mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 18:50:44 +00:00
fix(matrix): preserve payload audioAsVoice in presentation sends
This commit is contained in:
committed by
Peter Steinberger
parent
13cfb846ae
commit
90908cdf71
@@ -52,7 +52,7 @@ function renderMatrixPresentationPayload(params: {
|
||||
matrix: {
|
||||
...matrixData,
|
||||
extraContent: {
|
||||
...matrixData.extraContent,
|
||||
...(matrixData.extraContent ?? {}),
|
||||
[MATRIX_OPENCLAW_PRESENTATION_KEY]: buildMatrixPresentationContent(params.presentation),
|
||||
},
|
||||
},
|
||||
@@ -111,7 +111,7 @@ export const matrixOutbound: ChannelOutboundAdapter = {
|
||||
replyToId: resolvedReplyToId,
|
||||
threadId: resolvedThreadId,
|
||||
accountId: accountId ?? undefined,
|
||||
audioAsVoice,
|
||||
audioAsVoice: payload.audioAsVoice ?? audioAsVoice,
|
||||
extraContent: isFirst ? resolveMatrixExtraContent(payload) : undefined,
|
||||
});
|
||||
}
|
||||
@@ -130,7 +130,7 @@ export const matrixOutbound: ChannelOutboundAdapter = {
|
||||
replyToId: resolvedReplyToId,
|
||||
threadId: resolvedThreadId,
|
||||
accountId: accountId ?? undefined,
|
||||
audioAsVoice,
|
||||
audioAsVoice: payload.audioAsVoice ?? audioAsVoice,
|
||||
extraContent: resolveMatrixExtraContent(payload),
|
||||
});
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user