fix(matrix): assert outbound runtime hooks

This commit is contained in:
Peter Steinberger 2026-03-15 18:20:42 -07:00
parent 83ee5c0328
commit 9cca8a6de5
No known key found for this signature in database

View File

@ -379,7 +379,7 @@ export const matrixPlugin: ChannelPlugin<ResolvedMatrixAccount> = {
},
outbound: {
deliveryMode: "direct",
chunker: (text, limit) => getMatrixRuntime().channel.text.chunkMarkdownText(text, limit),
chunker: (text, limit) => getMatrixRuntime().channel.text.chunkMarkdownText!(text, limit),
chunkerMode: "markdown",
textChunkLimit: 4000,
sendText: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendText!(params),