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.
- package/package.json +1 -1
- package/src/channel.ts +3 -1
package/package.json
CHANGED
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
|
-
|
|
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;
|