base: Turn the get member method async.
parent
dadcc68336
commit
35069c5252
|
@ -283,8 +283,11 @@ impl Room {
|
||||||
*inner = summary;
|
*inner = summary;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_member(&self, user_id: &UserId) -> Option<RoomMember> {
|
pub async 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())
|
self.store
|
||||||
|
.get_member_event(&self.room_id, user_id)
|
||||||
|
.await
|
||||||
|
.map(|e| e.into())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn room_id(&self) -> &RoomId {
|
pub fn room_id(&self) -> &RoomId {
|
||||||
|
|
Loading…
Reference in New Issue