Skip to content

Your lightweight open-source personal agent.

fix(feishu): propagate is_dm and remove early is_allowed check

chengyongruf3cae85bb122
diff --git a/nanobot/channels/feishu.py b/nanobot/channels/feishu.py
index efdb17fdf..83f9a6ccc 100644
--- a/nanobot/channels/feishu.py
+++ b/nanobot/channels/feishu.py
@@ -1699,9 +1699,6 @@ class FeishuChannel(BaseChannel):
chat_type = message.chat_type
msg_type = message.message_type
- if not self.is_allowed(sender_id):
- return
-
if chat_type == "group" and not self._is_group_message_for_bot(message):
self.logger.debug("skipping group message (not mentioned)")
return
@@ -1829,6 +1826,7 @@ class FeishuChannel(BaseChannel):
"thread_id": thread_id,
},
session_key=session_key,
+ is_dm=chat_type == "p2p",
)
except Exception: