From ae645dac99be76308727d1b4ce2c6f7428221635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 26 Oct 2023 11:26:42 +0200 Subject: [PATCH] room: Remove unnecessary async --- src/session/model/room/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/session/model/room/mod.rs b/src/session/model/room/mod.rs index b0371e5c..d506eff7 100644 --- a/src/session/model/room/mod.rs +++ b/src/session/model/room/mod.rs @@ -699,7 +699,7 @@ impl Room { ctx.spawn(async move { spawn!(async move { if let Some(obj) = room_weak.upgrade() { - obj.handle_typing_event(event.content).await + obj.handle_typing_event(event.content) } }); }); @@ -718,7 +718,7 @@ impl Room { ctx.spawn(async move { spawn!(async move { if let Some(obj) = room_weak.upgrade() { - obj.handle_receipt_event(event.content).await + obj.handle_receipt_event(event.content) } }); }); @@ -727,7 +727,7 @@ impl Room { ); } - async fn handle_receipt_event(&self, content: ReceiptEventContent) { + fn handle_receipt_event(&self, content: ReceiptEventContent) { let own_user_id = self.session().user().unwrap().user_id(); for (_event_id, receipts) in content.iter() { @@ -739,7 +739,7 @@ impl Room { } } - async fn handle_typing_event(&self, content: TypingEventContent) { + fn handle_typing_event(&self, content: TypingEventContent) { let typing_list = &self.imp().typing_list; let Some(members) = self.members() else {