base: Turn the get member method async.
This commit is contained in:
parent
dadcc68336
commit
35069c5252
1 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue