fix(identity): keep live group membership in sync with join and leave

A join now counts the member as in the group right away. A leave drops
them from the live roster without forgetting who they are. Other
sightings still do not mean the person is in the group.
This commit is contained in:
DrSmoothl committed 2026-08-29 23:34:43 +08:00
1 parent 9e27910885
commit 9cdbcb0299
4 files changed
+132 -2

No files matched your search

+4
View File
@@ -678,6 +678,10 @@ export class IncomingPacketPipeline {
uid: event.operatorUid,
uin: event.operatorUin,
});
this.deps.identity.rememberGroupMemberJoined(event.groupId, {
uid: event.userUid,
uin: event.userUin,
});
break;
case 'group_member_leave':
this.deps.identity.markGroupMemberInactive(event.groupId, {