Retrieve user id from RoomMember instead of reconstructing.

This commit is contained in:
Denis Kasak 2020-06-09 22:19:51 +02:00
parent 82827542b7
commit ac069152b9

View file

@ -395,10 +395,7 @@ impl Room {
);
}
self.members.insert(
UserId::try_from(event.state_key.as_str()).unwrap(),
new_member,
);
self.members.insert(new_member.user_id.clone(), new_member);
true
}