Commit 6812864
zulip: Fix principals default for remove_subscriptions.
The documented API for DELETE /api/v1/users/me/subscriptions is that
principals should be omitted to remove a subscription for the calling
user. A call with principals=[] should have a different meaning, but
a server bug currently conflates this with a call omitting principals.
Avoid relying on this bug.
Signed-off-by: Anders Kaseorg <anders@zulip.com>1 parent 70b8661 commit 6812864
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1383 | 1383 | | |
1384 | 1384 | | |
1385 | 1385 | | |
1386 | | - | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
1387 | 1389 | | |
1388 | 1390 | | |
1389 | 1391 | | |
1390 | 1392 | | |
1391 | | - | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1392 | 1396 | | |
1393 | 1397 | | |
1394 | 1398 | | |
| |||
0 commit comments