1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00

refactor: remove unecessery async

This commit is contained in:
Matthias Ahouansou 2024-07-01 15:12:44 +01:00
parent fdfc5cbf7c
commit 4942cc8e55
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View file

@ -907,7 +907,6 @@ async fn join_room_by_id_helper(
.rooms .rooms
.state_accessor .state_accessor
.user_can_invite(room_id, &user, sender_user, &state_lock) .user_can_invite(room_id, &user, sender_user, &state_lock)
.await
.unwrap_or(false) .unwrap_or(false)
{ {
auth_user = Some(user); auth_user = Some(user);

View file

@ -308,7 +308,7 @@ impl Service {
}) })
} }
pub async fn user_can_invite( pub fn user_can_invite(
&self, &self,
room_id: &RoomId, room_id: &RoomId,
sender: &UserId, sender: &UserId,