From 7c2144c6d7fd19dd933aac3dc0d30ffa30dee80a Mon Sep 17 00:00:00 2001 From: CapsizeGlimmer <> Date: Sat, 4 Jul 2020 16:41:05 -0400 Subject: [PATCH] Implement /logout/all --- src/client_server.rs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/client_server.rs b/src/client_server.rs index cde8bf5..f34dc60 100644 --- a/src/client_server.rs +++ b/src/client_server.rs @@ -45,7 +45,7 @@ use ruma::{ read_marker::set_read_marker, redact::redact_event, room::{self, create_room}, - session::{get_login_types, login, logout}, + session::{get_login_types, login, logout, logout_all}, state::{ create_state_event_for_empty_key, create_state_event_for_key, get_state_events, get_state_events_for_empty_key, get_state_events_for_key, @@ -305,6 +305,22 @@ pub fn logout_route( Ok(logout::Response.into()) } +#[post("/_matrix/client/r0/logout/all", data = "
")] +pub fn logout_all_route( + db: State<'_, Database>, + body: Ruma