Rename not_subscribed key to not_removed in users/me/subscriptions.

Rename `not_subscibed_key` to `not_removed` in
`users/me/subscriptions` DELETE response.

Fixes #13277.
This commit is contained in:
Rafid Aslam
2019-10-13 10:30:34 +07:00
parent dfd9ace7fa
commit 718b70ec8b
5 changed files with 12 additions and 12 deletions

View File

@@ -257,7 +257,7 @@ def remove_subscriptions_backend(
else:
people_to_unsub = set([user_profile])
result = dict(removed=[], not_subscribed=[]) # type: Dict[str, List[str]]
result = dict(removed=[], not_removed=[]) # type: Dict[str, List[str]]
(removed, not_subscribed) = bulk_remove_subscriptions(people_to_unsub, streams,
request.client,
acting_user=user_profile)
@@ -265,7 +265,7 @@ def remove_subscriptions_backend(
for (subscriber, removed_stream) in removed:
result["removed"].append(removed_stream.name)
for (subscriber, not_subscribed_stream) in not_subscribed:
result["not_subscribed"].append(not_subscribed_stream.name)
result["not_removed"].append(not_subscribed_stream.name)
return json_success(result)