From 7193fd3085c210fce8f34cd78d0b4d45c4cd9180 Mon Sep 17 00:00:00 2001 From: wyapx Date: Thu, 26 Sep 2024 00:54:30 +0800 Subject: [PATCH] chore(event): rename GroupInviteAccept to GroupMemberJoinedByInvite --- lagrange/client/events/group.py | 2 +- lagrange/client/server_push/msg.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lagrange/client/events/group.py b/lagrange/client/events/group.py index 4265112..14b2584 100644 --- a/lagrange/client/events/group.py +++ b/lagrange/client/events/group.py @@ -150,6 +150,6 @@ class GroupInvite(GroupEvent): @dataclass -class GroupInviteAccept(GroupEvent): +class GroupMemberJoinedByInvite(GroupEvent): invitor_uin: int uin: int \ No newline at end of file diff --git a/lagrange/client/server_push/msg.py b/lagrange/client/server_push/msg.py index bc809c1..9ef034f 100644 --- a/lagrange/client/server_push/msg.py +++ b/lagrange/client/server_push/msg.py @@ -37,7 +37,7 @@ GroupReaction, GroupSign, GroupAlbumUpdate, - GroupInviteAccept + GroupMemberJoinedByInvite ) from ..events.friend import ( FriendRecall @@ -127,7 +127,7 @@ async def msg_push_handler(client: "Client", sso: SSOPacket): if pb.body.type == 1: if "invitor" in attrs: # reserve: attrs["msg_nums"] - return GroupInviteAccept( + return GroupMemberJoinedByInvite( grp_id, attrs["invitor"], attrs["invitee"]