openclaw-channel-dmwork 0.3.3 → 0.3.4

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 +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-channel-dmwork",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "DMWork channel plugin for OpenClaw via WuKongIM WebSocket",
5
5
  "main": "index.ts",
6
6
  "type": "module",
package/src/channel.ts CHANGED
@@ -380,7 +380,9 @@ export const dmworkPlugin: ChannelPlugin<ResolvedDmworkAccount> = {
380
380
  // Skip self messages
381
381
  if (msg.from_uid === credentials.robot_id) return;
382
382
  // Skip messages from any other bot in this plugin instance (prevent bot-to-bot loops)
383
- if (_knownBotUids.has(msg.from_uid)) return;
383
+ // But allow group messages through — bot-to-bot @mention in groups is legitimate;
384
+ // mention gating in inbound.ts ensures only @-targeted messages trigger AI.
385
+ if (_knownBotUids.has(msg.from_uid) && msg.channel_type === ChannelType.DM) return;
384
386
  // Skip unsupported message types (Location, Card)
385
387
  const supportedTypes = [MessageType.Text, MessageType.Image, MessageType.GIF, MessageType.Voice, MessageType.Video, MessageType.File];
386
388
  if (!msg.payload || !supportedTypes.includes(msg.payload.type)) return;