Skip to content

Commit

Permalink
🚑修复自身消息上报
Browse files Browse the repository at this point in the history
  • Loading branch information
JustUndertaker committed Oct 21, 2022
1 parent 9952aa6 commit 5c893f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ntchat_client/wechat/wechat.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def on_message(self, _: ntchat.WeChat, message: dict) -> None:
msgtype = message["type"]
if msgtype in self.msg_fiter:
return
wx_id = message["data"].get("from_wxid")
if wx_id == self.self_id and not self.config.report_self:
return
logger.success(f"<m>wechat</m> - <g>收到wechat消息:</g>{escape_tag(str(message))}")
if self.loop is not None:
if self.loop.is_running:
Expand Down

0 comments on commit 5c893f5

Please sign in to comment.