From 35069c52522ea0b13db068a8eccb882507fa1c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 24 Nov 2020 10:58:14 +0100 Subject: [PATCH] base: Turn the get member method async. --- matrix_sdk_base/src/store.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/matrix_sdk_base/src/store.rs b/matrix_sdk_base/src/store.rs index 84cba3f3..93dd3dd7 100644 --- a/matrix_sdk_base/src/store.rs +++ b/matrix_sdk_base/src/store.rs @@ -283,8 +283,11 @@ impl Room { *inner = summary; } - pub fn get_member(&self, user_id: &UserId) -> Option { - 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 { + self.store + .get_member_event(&self.room_id, user_id) + .await + .map(|e| e.into()) } pub fn room_id(&self) -> &RoomId {