kevin.yang 3 dagen geleden
bovenliggende
commit
16c192817b
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6 1
      gateway/core/channels/feishu/http_run_executor.py

+ 6 - 1
gateway/core/channels/feishu/http_run_executor.py

@@ -573,7 +573,12 @@ class FeishuHttpRunApiExecutor:
         task_id = f"task-{uuid.uuid4()}"
 
         typing_placed = False
-        if self._typing_reaction_enabled and reply_context.message_id:
+        # 仅对用户发来的 IM 消息打「输入中」表情;卡片交互 / 表情续跑等事件的 message_id 常为机器人消息,避免对其加 reaction。
+        if (
+            self._typing_reaction_enabled
+            and reply_context.message_id
+            and event.event_type == "message"
+        ):
             try:
                 react_res = await connector.add_message_reaction(
                     reply_context.message_id,