From b6045d16a4f2207acf46d4e9559a09891ad47fc0 Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Fri, 17 Jul 2020 06:16:47 -0500 Subject: [PATCH] Use DeviceId instead of String for login response. --- ruma-client-api/CHANGELOG.md | 1 + ruma-client-api/src/r0/session/login.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruma-client-api/CHANGELOG.md b/ruma-client-api/CHANGELOG.md index b87daadb..3a4c954f 100644 --- a/ruma-client-api/CHANGELOG.md +++ b/ruma-client-api/CHANGELOG.md @@ -20,6 +20,7 @@ Breaking changes: * Fix event types in `r0::sync::sync_events` * Update type of `user_id` in `r0::account::whoami` from `String` to `ruma_identifiers::UserId` * Update type of `limited` in `r0::sync::sync_events::Timeline` from `Option` to `bool` +* Use `DeviceId` for `device_id` field of `r0::session::login::Response` Improvements: diff --git a/ruma-client-api/src/r0/session/login.rs b/ruma-client-api/src/r0/session/login.rs index 3d972b89..f1fa64d4 100644 --- a/ruma-client-api/src/r0/session/login.rs +++ b/ruma-client-api/src/r0/session/login.rs @@ -51,9 +51,9 @@ ruma_api! { /// ID of the logged-in device. /// - /// Will be the same as the corresponging parameter in the request, if one was + /// Will be the same as the corresponding parameter in the request, if one was /// specified. - pub device_id: String, + pub device_id: DeviceId, /// Client configuration provided by the server. ///