summaryrefslogtreecommitdiffstats
path: root/src/chat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/chat.rs')
-rw-r--r--src/chat.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chat.rs b/src/chat.rs
index 29e2641..f4202f6 100644
--- a/src/chat.rs
+++ b/src/chat.rs
@@ -59,11 +59,11 @@ pub struct ArcMacawChat {
}
impl ArcMacawChat {
- pub fn got_chat_and_user(chat: Chat, user: User) -> Self {
+ pub async fn got_chat_and_user(chat: Chat, user: User) -> Self {
let chat_state_store: StateStore<BareJID, ArcStore<Chat>> =
use_context().expect("no chat state store");
let chat = chat_state_store.store(chat.correspondent.clone(), ArcStore::new(chat));
- let user = ArcMacawUser::got_user(user);
+ let user = ArcMacawUser::got_user(user).await;
Self { chat, user }
}
}