dont auto join rooms if registrations are from appservices

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-16 19:22:58 -04:00 committed by June
parent 6131465d23
commit 641399e900

View file

@ -339,8 +339,9 @@ pub async fn register_route(body: Ruma<register::v3::Request>) -> Result<registe
} }
} }
if !services().globals.config.auto_join_rooms.is_empty() && !is_guest if !body.from_appservice
|| (services().globals.allow_guests_auto_join_rooms() && is_guest) && !services().globals.config.auto_join_rooms.is_empty()
&& (services().globals.allow_guests_auto_join_rooms() || !is_guest)
{ {
for room in &services().globals.config.auto_join_rooms { for room in &services().globals.config.auto_join_rooms {
if !services() if !services()