Retrieve user id from RoomMember instead of reconstructing.

master
Denis Kasak 2020-06-09 22:19:51 +02:00
parent 82827542b7
commit ac069152b9
1 changed files with 1 additions and 4 deletions

View File

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