1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-02-02 21:58:22 +03:00

Merge branch 'Nyaaori/fix-whoami-appservices' into 'next'

Fix is_guest value on whoami for appservice users

Closes 

See merge request 
This commit is contained in:
Timo Kösters 2022-10-15 11:32:49 +00:00
commit ed5b8d6a46

View file

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