Update sync_events::DeviceLists field types

This commit is contained in:
Jonas Platte 2020-05-21 23:36:07 +02:00
parent 6d93ec1d1a
commit b5fa684dfc
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ Breaking changes:
* The `event_id` in the response for the message and state sending endpoints is now required
* r0.6.0 doesn't say they are required, but this has been fixed for the next version of the spec
* Updated the type of `r0::sync::sync_events::DeviceLists` fields
Improvements:

View File

@ -330,12 +330,12 @@ pub struct DeviceLists {
/// List of users who have updated their device identity keys or who now
/// share an encrypted room with the client since the previous sync
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub changed: Vec<String>,
pub changed: Vec<UserId>,
/// List of users who no longer share encrypted rooms since the previous sync
/// response.
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub left: Vec<String>,
pub left: Vec<UserId>,
}
#[cfg(test)]