From 15bd7d2641745637fc755dede87b30461a0fe3fe Mon Sep 17 00:00:00 2001 From: tilpner Date: Thu, 28 Sep 2017 20:28:24 +0200 Subject: [PATCH] Pass sync request as query parameters instead of data Before, it would silently ignore them for defaults, so long-polling was not possible because no timeout was passed --- src/r0/sync.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/r0/sync.rs b/src/r0/sync.rs index b698d6ec..5b897fdc 100644 --- a/src/r0/sync.rs +++ b/src/r0/sync.rs @@ -219,18 +219,23 @@ pub mod sync_events { request { /// A filter represented either as its full JSON definition or the ID of a saved filter. #[serde(skip_serializing_if = "Option::is_none")] + #[ruma_api(query)] pub filter: Option, /// A point in time to continue a sync from. #[serde(skip_serializing_if = "Option::is_none")] + #[ruma_api(query)] pub since: Option, /// Controls whether to include the full state for all rooms the user is a member of. #[serde(skip_serializing_if = "Option::is_none")] + #[ruma_api(query)] pub full_state: Option, /// Controls whether the client is automatically marked as online by polling this API. #[serde(skip_serializing_if = "Option::is_none")] + #[ruma_api(query)] pub set_presence: Option, /// The maximum time to poll in milliseconds before returning this request. #[serde(skip_serializing_if = "Option::is_none")] + #[ruma_api(query)] pub timeout: Option, }