openclaw-xiaoyou 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/channel.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-xiaoyou",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "type": "module",
5
5
  "description": "Xiaoyou channel plugin for OpenClaw — connects enterprise services via persistent outbound WebSocket",
6
6
  "openclaw": {
package/src/channel.ts CHANGED
@@ -316,7 +316,7 @@ export const xiayouPlugin = {
316
316
  messageId: `xiaoyou-${Date.now()}`,
317
317
  replyToMessageId: replyToId,
318
318
  senderId: to,
319
- source: "scheduled_task" as const,
319
+ ...(replyToId ? {} : { source: "scheduled_task" as const }),
320
320
  text: text,
321
321
  timestamp: Date.now(),
322
322
  };
@@ -339,7 +339,7 @@ export const xiayouPlugin = {
339
339
  messageId: `xiaoyou-${Date.now()}`,
340
340
  replyToMessageId: replyToId,
341
341
  senderId: to,
342
- source: "scheduled_task" as const,
342
+ ...(replyToId ? {} : { source: "scheduled_task" as const }),
343
343
  text: text ?? "",
344
344
  mediaUrls: mediaUrl ? [mediaUrl] : [],
345
345
  timestamp: Date.now(),