From c60402bf0d86e851c2d0768ff32ac1fda6361075 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 8 Apr 2020 23:13:30 +0200 Subject: [PATCH] Update ruma-client-api --- Cargo.lock | 2 +- src/main.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cd519ba2..12c66265 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1052,7 +1052,7 @@ dependencies = [ [[package]] name = "ruma-client-api" version = "0.7.2" -source = "git+https://github.com/ruma/ruma-client-api.git#dc582758e4f846b3751d84d21eb321e8eb4faf51" +source = "git+https://github.com/ruma/ruma-client-api.git#aeb4e237b7f13a068a92929fdb5c5adac4f346e1" dependencies = [ "http", "js_int", diff --git a/src/main.rs b/src/main.rs index a2cfc105..2102c1d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,10 +118,9 @@ fn register_route( data.token_replace(&user_id, &device_id, token.clone()); MatrixResult(Ok(register::Response { - access_token: token, - home_server: data.hostname().to_owned(), + access_token: Some(token), user_id, - device_id, + device_id: Some(device_id), })) }