Use set instead of add in memberlist

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-06-22 15:35:17 +05:30
parent 2e8c4563aa
commit 11eb9c7783

View file

@ -28,7 +28,7 @@ export class MemberList extends RetainedValue {
afterSync(memberChanges) {
for (const [userId, memberChange] of memberChanges.entries()) {
this._members.add(userId, memberChange.member);
this._members.set(userId, memberChange.member);
}
}