fix(matrix): avoid explicit undefined reply fanout options · openclaw/openclaw@ad39262
kakahu2015
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -101,11 +101,10 @@ export const matrixOutbound: ChannelOutboundAdapter = {
|
101 | 101 | resolveOutboundSendDep<typeof sendMessageMatrix>(deps, "matrix") ?? sendMessageMatrix; |
102 | 102 | const resolvedThreadId = |
103 | 103 | threadId !== undefined && threadId !== null ? String(threadId) : undefined; |
104 | | -const resolvedReplyToId = replyToId ?? undefined; |
105 | 104 | const resolveReplyToId = createReplyToFanout({ |
106 | | -replyToId: resolvedReplyToId, |
107 | | - replyToIdSource, |
108 | | - replyToMode, |
| 105 | +...(replyToId != null ? { replyToId } : {}), |
| 106 | +...(replyToIdSource !== undefined ? { replyToIdSource } : {}), |
| 107 | +...(replyToMode !== undefined ? { replyToMode } : {}), |
109 | 108 | }); |
110 | 109 | const urls = resolvePayloadMediaUrls(payload); |
111 | 110 | if (urls.length > 0) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。