diff --git a/extensions/matrix/src/outbound.test.ts b/extensions/matrix/src/outbound.test.ts index 8dc6e35ee42..c34fee012fe 100644 --- a/extensions/matrix/src/outbound.test.ts +++ b/extensions/matrix/src/outbound.test.ts @@ -170,7 +170,7 @@ describe("matrixOutbound cfg threading", () => { ); }); - it("renders MessagePresentation into Matrix custom content metadata", () => { + it("renders MessagePresentation into Matrix custom content metadata", async () => { const presentation = { title: "Select thinking level", tone: "info" as const, @@ -185,7 +185,7 @@ describe("matrixOutbound cfg threading", () => { ], }; - const rendered = matrixOutbound.renderPresentation!({ + const rendered = await matrixOutbound.renderPresentation!({ payload: { text: "fallback", presentation }, presentation, ctx: {} as never, diff --git a/extensions/matrix/src/outbound.ts b/extensions/matrix/src/outbound.ts index 06a60153be9..93f98898bae 100644 --- a/extensions/matrix/src/outbound.ts +++ b/extensions/matrix/src/outbound.ts @@ -51,7 +51,7 @@ function renderMatrixPresentationPayload(params: { matrix: { ...matrixData, extraContent: { - ...(matrixData.extraContent ?? {}), + ...matrixData.extraContent, [MATRIX_OPENCLAW_PRESENTATION_KEY]: buildMatrixPresentationContent(params.presentation), }, },