mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Don't add a memeber to the members list if it left the DM
This commit is contained in:
parent
bc385e2cdc
commit
b73e3e9883
@ -85,8 +85,10 @@ export class Heroes {
|
||||
this._members.delete(userId);
|
||||
}
|
||||
for (const member of updatedHeroMembers) {
|
||||
if (!removedUserIds.includes(member.userId)) {
|
||||
this._members.set(member.userId, member);
|
||||
}
|
||||
}
|
||||
const sortedMembers = Array.from(this._members.values()).sort((a, b) => a.name.localeCompare(b.name));
|
||||
this._roomName = calculateRoomName(sortedMembers, summaryData, log);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user