From f5667c6292adb43fbe4725d31d6b5127a0cf60ce Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 7 Feb 2025 17:59:02 -0500 Subject: [PATCH] dont fail req deserialisation over empty push response body Signed-off-by: strawberry --- crates/ruma-push-gateway-api/src/send_event_notification.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruma-push-gateway-api/src/send_event_notification.rs b/crates/ruma-push-gateway-api/src/send_event_notification.rs index b85a5f36..bc288318 100644 --- a/crates/ruma-push-gateway-api/src/send_event_notification.rs +++ b/crates/ruma-push-gateway-api/src/send_event_notification.rs @@ -48,6 +48,7 @@ pub mod v1 { /// pushkeys and remove the associated pushers. It may not necessarily be the notification /// in the request that failed: it could be that a previous notification to the same /// pushkey failed. May be empty. + #[serde(default)] pub rejected: Vec, }