1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-28 03:44:31 +01:00

Do not return true for is_guest on whoami for appservice users

This commit is contained in:
Nyaaori 2022-10-15 13:17:58 +02:00
parent 3054af41ba
commit 2d0fdddd34
No known key found for this signature in database
GPG key ID: E7819C3ED4D1F82E

View file

@ -338,7 +338,7 @@ pub async fn whoami_route(body: Ruma<whoami::v3::Request>) -> Result<whoami::v3:
Ok(whoami::v3::Response {
user_id: sender_user.clone(),
device_id,
is_guest: services().users.is_deactivated(sender_user)?,
is_guest: services().users.is_deactivated(sender_user)? && !body.from_appservice,
})
}