TEMP: remove user_is_invited stuff
this is clearly unfinished right now Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
f0b91461a0
commit
db8e7e5382
3 changed files with 3 additions and 59 deletions
|
@ -954,14 +954,7 @@ pub(crate) async fn join_room_by_id_helper(
|
|||
.state_cache
|
||||
.room_members(room_id)
|
||||
.filter_map(Result::ok)
|
||||
.find(|auth_user| {
|
||||
auth_user.server_name() == services().globals.server_name()
|
||||
&& services()
|
||||
.rooms
|
||||
.state_accessor
|
||||
.user_can_invite(room_id, auth_user, sender_user)
|
||||
.unwrap_or(false)
|
||||
})
|
||||
.find(|auth_user| auth_user.server_name() == services().globals.server_name())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
|
@ -951,14 +951,7 @@ pub async fn create_join_event_template_route(
|
|||
.state_cache
|
||||
.room_members(&body.room_id)
|
||||
.filter_map(Result::ok)
|
||||
.find(|user| {
|
||||
user.server_name() == services().globals.server_name()
|
||||
&& services()
|
||||
.rooms
|
||||
.state_accessor
|
||||
.user_can_invite(&body.room_id, user, &body.user_id)
|
||||
.unwrap_or(false)
|
||||
})
|
||||
.find(|user| user.server_name() == services().globals.server_name())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue