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"]