Retrieve user id from RoomMember instead of reconstructing.
This commit is contained in:
parent
82827542b7
commit
ac069152b9
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue