调整取名字内容

This commit is contained in:
liuwei
2025-04-18 13:51:08 +08:00
parent 837546862e
commit 0c154fb1aa

View File

@@ -132,8 +132,8 @@ class GroupVirtualPlugin(MessagePluginInterface):
sender = message.get("sender", "")
con = ContactManager.get_instance()
# 获取发送者昵称
sender_name = con.get_contact_name(sender) or "未知用户"
sender_name = con.get_group_name(roomid, sender) or "未知用户"
# 获取源群名称
source_group_name = None
for group in chat_group["groups"]:
@@ -181,4 +181,4 @@ class GroupVirtualPlugin(MessagePluginInterface):
def _save_data(self):
"""保存数据到Redis"""
self.group_virtual_redis.save_chat_groups(self.data)
self.group_virtual_redis.save_chat_groups(self.data)