mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Use set instead of add in memberlist
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
2e8c4563aa
commit
11eb9c7783
@ -28,7 +28,7 @@ export class MemberList extends RetainedValue {
|
|||||||
|
|
||||||
afterSync(memberChanges) {
|
afterSync(memberChanges) {
|
||||||
for (const [userId, memberChange] of memberChanges.entries()) {
|
for (const [userId, memberChange] of memberChanges.entries()) {
|
||||||
this._members.add(userId, memberChange.member);
|
this._members.set(userId, memberChange.member);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user