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:
4 files changed
+132
-2
No files matched your search
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user