Update astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
夏目侧耳
2025-05-15 20:59:53 +08:00
committed by GitHub
parent e0ce6d9688
commit 26482fc2d3
@@ -365,10 +365,7 @@ class WeChatPadProAdapter(Platform):
abm.group_id = from_user_name
parts = content.split(":\n", 1)
sender_wxid = ""
if len(parts) == 2:
sender_wxid = parts[0]
sender_wxid = parts[0] if len(parts) == 2 else ""
abm.sender = MessageMember(user_id=sender_wxid, nickname="")
# 获取群聊发送者的nickname