From 04af2e41b4a7d36d33f8dfd462a81d4adb02b266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= Date: Fri, 31 Aug 2018 17:42:47 +0200 Subject: [PATCH] Client.log_in: Add parameter `device_id` This parameter was added to the request. https://github.com/ruma/ruma-client-api/commit/a7bce18b59fba5d5faa3e0621a7d885cc7c20071 --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 338c823e..b2cc3076 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -107,7 +107,7 @@ where /// In contrast to api::r0::session::login::call(), this method stores the /// session data returned by the endpoint in this client, instead of /// returning it. - pub fn log_in(&self, user: String, password: String) + pub fn log_in(&self, user: String, password: String, device_id: Option) -> impl Future { use api::r0::session::login; @@ -117,6 +117,7 @@ where address: None, login_type: login::LoginType::Password, medium: None, + device_id, password, user, }).map(move |response| {