diff --git a/ruma-client-api/CHANGELOG.md b/ruma-client-api/CHANGELOG.md index af6d6714..b99e6d6c 100644 --- a/ruma-client-api/CHANGELOG.md +++ b/ruma-client-api/CHANGELOG.md @@ -65,6 +65,8 @@ Breaking changes: * Move `user: UserInfo` in `r0::session::login::Request` to `identifier: UserIdentifier` in `r0::session::login::LoginInfo::Password` * `r0::session::login::Request::new` takes only `login_info: LoginInfo` as a param +* Change `ruma_events::AnyEvent` to `ruma_events::AnySyncRoomEvent` in + `push::get_notifications::Notification` Improvements: diff --git a/ruma-client-api/src/r0/push/get_notifications.rs b/ruma-client-api/src/r0/push/get_notifications.rs index ddb41b4d..82ab0608 100644 --- a/ruma-client-api/src/r0/push/get_notifications.rs +++ b/ruma-client-api/src/r0/push/get_notifications.rs @@ -5,7 +5,7 @@ use std::time::SystemTime; use js_int::UInt; use ruma_api::ruma_api; use ruma_common::push::Action; -use ruma_events::AnyEvent; +use ruma_events::AnySyncRoomEvent; use ruma_identifiers::RoomId; use ruma_serde::Raw; use serde::{Deserialize, Serialize}; @@ -75,7 +75,7 @@ pub struct Notification { pub actions: Vec, /// The event that triggered the notification. - pub event: Raw, + pub event: Raw, /// The profile tag of the rule that matched this event. #[serde(skip_serializing_if = "Option::is_none")] @@ -98,7 +98,7 @@ impl Notification { /// timestamp. pub fn new( actions: Vec, - event: Raw, + event: Raw, read: bool, room_id: RoomId, ts: SystemTime,