fix(irc): use channel routes for group inbound targets · openclaw/openclaw@bf8be79
stevenepalme
·
2026-05-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -241,6 +241,7 @@ describe("irc inbound behavior", () => {
|
241 | 241 | ).toBe(1); |
242 | 242 | expect(runtime.log).not.toHaveBeenCalled(); |
243 | 243 | expect(ctx?.From).toBe("channel:#ops"); |
| 244 | +expect(ctx?.To).toBe("channel:#ops"); |
244 | 245 | expect(ctx?.OriginatingTo).toBe("channel:#ops"); |
245 | 246 | }); |
246 | 247 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -377,7 +377,7 @@ export async function handleIrcInbound(params: {
|
377 | 377 | RawBody: rawBody, |
378 | 378 | CommandBody: rawBody, |
379 | 379 | From: message.isGroup ? `channel:${channelTarget}` : `irc:${senderDisplay}`, |
380 | | -To: `irc:${peerId}`, |
| 380 | +To: message.isGroup ? `channel:${channelTarget}` : `irc:${peerId}`, |
381 | 381 | SessionKey: route.sessionKey, |
382 | 382 | AccountId: route.accountId, |
383 | 383 | ChatType: message.isGroup ? "group" : "direct", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。