base: Turn the get member method async.

master
Damir Jelić 2020-11-24 10:58:14 +01:00
parent dadcc68336
commit 35069c5252
1 changed files with 5 additions and 2 deletions

View File

@ -283,8 +283,11 @@ impl Room {
*inner = summary;
}
pub fn get_member(&self, user_id: &UserId) -> Option<RoomMember> {
block_on(self.store.get_member_event(&self.room_id, user_id)).map(|e| e.into())
pub async fn get_member(&self, user_id: &UserId) -> Option<RoomMember> {
self.store
.get_member_event(&self.room_id, user_id)
.await
.map(|e| e.into())
}
pub fn room_id(&self) -> &RoomId {