Browse Source

refactor: remove unecessery async

merge-requests/626/merge
Matthias Ahouansou 2 years ago
parent
commit
4942cc8e55
No known key found for this signature in database
  1. 1
      src/api/client_server/membership.rs
  2. 2
      src/service/rooms/state_accessor/mod.rs

1
src/api/client_server/membership.rs

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

2
src/service/rooms/state_accessor/mod.rs

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

Loading…
Cancel
Save