Skip to content

Commit 3e1ec2d

Browse files
committed
zulip api: unsubscribe doesn't take an object
1 parent dbf3df6 commit 3e1ec2d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sync-team/src/zulip/api.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,7 @@ impl ZulipApi {
241241
}
242242

243243
if !remove_ids.is_empty() {
244-
let subscriptions = serde_json::to_string(&serde_json::json!([{
245-
"name": stream_name,
246-
}]))?;
244+
let subscriptions = serde_json::to_string(&serde_json::json!([stream_name]))?;
247245
let remove_ids = serialize_as_array(remove_ids);
248246
submit(reqwest::Method::DELETE, subscriptions, remove_ids)?;
249247
}

0 commit comments

Comments
 (0)