diff --git a/src/r0/session.rs b/src/r0/session.rs index b08c9b85..386878d3 100644 --- a/src/r0/session.rs +++ b/src/r0/session.rs @@ -28,7 +28,10 @@ pub mod login { pub user: String, /// Third party identifier for the user. #[serde(skip_serializing_if = "Option::is_none")] - pub address: Option + pub address: Option, + /// ID of the client device + #[serde(skip_serializing_if = "Option::is_none")] + pub device_id: Option, } response { @@ -42,6 +45,11 @@ pub mod login { pub refresh_token: Option, /// The fully-qualified Matrix ID that has been registered. pub user_id: UserId, + /// ID of the logged-in device. + /// + /// Will be the same as the corresponging parameter in the request, if one was + /// specified. + pub device_id: String, } }