Skip to content

Commit 7193fd3

Browse files
committed
chore(event): rename GroupInviteAccept to GroupMemberJoinedByInvite
1 parent 2e95ee9 commit 7193fd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lagrange/client/events/group.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@ class GroupInvite(GroupEvent):
150150

151151

152152
@dataclass
153-
class GroupInviteAccept(GroupEvent):
153+
class GroupMemberJoinedByInvite(GroupEvent):
154154
invitor_uin: int
155155
uin: int

lagrange/client/server_push/msg.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
GroupReaction,
3838
GroupSign,
3939
GroupAlbumUpdate,
40-
GroupInviteAccept
40+
GroupMemberJoinedByInvite
4141
)
4242
from ..events.friend import (
4343
FriendRecall
@@ -127,7 +127,7 @@ async def msg_push_handler(client: "Client", sso: SSOPacket):
127127
if pb.body.type == 1:
128128
if "invitor" in attrs:
129129
# reserve: attrs["msg_nums"]
130-
return GroupInviteAccept(
130+
return GroupMemberJoinedByInvite(
131131
grp_id,
132132
attrs["invitor"],
133133
attrs["invitee"]

0 commit comments

Comments
 (0)