mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Fix response for unsubscribe requests
The response was being populated with the same stream name over and over again (imported from commit e205ce6019c1c7980b87ef33fd49497fe9c8691c)
This commit is contained in:
@@ -796,9 +796,9 @@ def remove_subscriptions_backend(request, user_profile,
|
|||||||
for stream in streams:
|
for stream in streams:
|
||||||
did_remove = do_remove_subscription(user_profile, stream)
|
did_remove = do_remove_subscription(user_profile, stream)
|
||||||
if did_remove:
|
if did_remove:
|
||||||
result["removed"].append(stream_name)
|
result["removed"].append(stream.name)
|
||||||
else:
|
else:
|
||||||
result["not_subscribed"].append(stream_name)
|
result["not_subscribed"].append(stream.name)
|
||||||
|
|
||||||
return json_success(result)
|
return json_success(result)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user