xiaozuoassistant 0.2.18 → 0.2.20
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.
|
@@ -47,10 +47,13 @@ export class FeishuChannel extends BaseChannel {
|
|
|
47
47
|
'im.message.receive_v1': async (data) => {
|
|
48
48
|
console.log(`[Feishu-${name}] Received message event:`, data);
|
|
49
49
|
const event = data.message;
|
|
50
|
-
|
|
50
|
+
const sender = data.sender;
|
|
51
|
+
if (!event || !sender) {
|
|
52
|
+
console.log(`[Feishu-${name}] Invalid event structure:`, data);
|
|
51
53
|
return;
|
|
54
|
+
}
|
|
52
55
|
// Ignore bot messages
|
|
53
|
-
if (
|
|
56
|
+
if (sender.sender_type !== 'user') {
|
|
54
57
|
console.log(`[Feishu-${name}] Ignoring bot message`);
|
|
55
58
|
return;
|
|
56
59
|
}
|