check if invited user is an admin before rejecting instead

i think this makes more sense tbh than what synapse does

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-02 21:54:16 -05:00 committed by June
parent 34e8fd38cf
commit 608aa83ed2
4 changed files with 16 additions and 12 deletions

View file

@ -153,7 +153,7 @@ registration_token = "change this token for something specific to your server"
# allow_room_creation = true
# controls whether non-admin local users are forbidden from sending room invites (local and remote),
# AND rejects all incoming remote/federation room invites for all users (including admins).
# and if non-admin users can receive remote room invites. admins are always allowed to send and receive all room invites.
# defaults to false
# block_non_admin_invites = falsse