config option to auto-remediate bad users joining bad rooms or servers
also forgets all rooms upon leave_all_rooms Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
6946eead28
commit
d15e461303
5 changed files with 117 additions and 144 deletions
|
@ -533,7 +533,7 @@ pub(crate) async fn deactivate_route(body: Ruma<deactivate::v3::Request>) -> Res
|
|||
}
|
||||
|
||||
// Make the user leave all rooms before deactivation
|
||||
client_server::leave_all_rooms(sender_user).await?;
|
||||
client_server::leave_all_rooms(sender_user).await;
|
||||
|
||||
// Remove devices and mark account as deactivated
|
||||
services().users.deactivate_account(sender_user)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue