Skip to content

Commit

Permalink
fix: ignore message from myself
Browse files Browse the repository at this point in the history
  • Loading branch information
hanfangyuan4396 committed Jan 3, 2025
1 parent b08c13c commit 5ce40f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions channel/gewechat/gewechat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ def POST(self):
logger.info(f"[gewechat] ignore message from non-user account: {gewechat_msg.actual_user_id}, content: {gewechat_msg.content}")
return "success"

if gewechat_msg.my_msg:
logger.info(f"[gewechat] ignore message from myself: {gewechat_msg.actual_user_id}, content: {gewechat_msg.content}")
return "success"

context = channel._compose_context(
gewechat_msg.ctype,
gewechat_msg.content,
Expand Down

0 comments on commit 5ce40f1

Please sign in to comment.