update device lists for user upon logout
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
830cd0e6d7
commit
20aa2cfca6
1 changed files with 6 additions and 0 deletions
|
@ -185,6 +185,9 @@ pub async fn logout_route(body: Ruma<logout::v3::Request>) -> Result<logout::v3:
|
|||
|
||||
services().users.remove_device(sender_user, sender_device)?;
|
||||
|
||||
// send device list update for user after logout
|
||||
services().users.mark_device_key_update(sender_user)?;
|
||||
|
||||
Ok(logout::v3::Response::new())
|
||||
}
|
||||
|
||||
|
@ -208,5 +211,8 @@ pub async fn logout_all_route(
|
|||
services().users.remove_device(sender_user, &device_id)?;
|
||||
}
|
||||
|
||||
// send device list update for user after logout
|
||||
services().users.mark_device_key_update(sender_user)?;
|
||||
|
||||
Ok(logout_all::v3::Response::new())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue