We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbf3df6 + 3e1ec2d commit 2a65ad8Copy full SHA for 2a65ad8
sync-team/src/zulip/api.rs
@@ -241,9 +241,7 @@ impl ZulipApi {
241
}
242
243
if !remove_ids.is_empty() {
244
- let subscriptions = serde_json::to_string(&serde_json::json!([{
245
- "name": stream_name,
246
- }]))?;
+ let subscriptions = serde_json::to_string(&serde_json::json!([stream_name]))?;
247
let remove_ids = serialize_as_array(remove_ids);
248
submit(reqwest::Method::DELETE, subscriptions, remove_ids)?;
249
0 commit comments