Skip to content

Commit

Permalink
chore(event): rename GroupInviteAccept to GroupMemberJoinedByInvite
Browse files Browse the repository at this point in the history
  • Loading branch information
wyapx committed Sep 25, 2024
1 parent 2e95ee9 commit 7193fd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lagrange/client/events/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ class GroupInvite(GroupEvent):


@dataclass
class GroupInviteAccept(GroupEvent):
class GroupMemberJoinedByInvite(GroupEvent):
invitor_uin: int
uin: int
4 changes: 2 additions & 2 deletions lagrange/client/server_push/msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
GroupReaction,
GroupSign,
GroupAlbumUpdate,
GroupInviteAccept
GroupMemberJoinedByInvite
)
from ..events.friend import (
FriendRecall
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 7193fd3

Please sign in to comment.