bulk_remove_subscriptions: Pass client object in.

We need the client object to pass on to do_mark_stream_as_read.
This commit is contained in:
Tim Abbott
2018-03-13 16:13:21 -07:00
parent c60f197fde
commit 6e55342e21
9 changed files with 22 additions and 14 deletions

View File

@@ -65,7 +65,8 @@ class Command(ZulipBaseCommand):
if len(subs_to_deactivate) > 0:
print("Deactivating %s subscriptions" % (len(subs_to_deactivate),))
bulk_remove_subscriptions([sub.user_profile for sub in subs_to_deactivate],
[stream_to_destroy])
[stream_to_destroy],
self.get_client())
do_deactivate_stream(stream_to_destroy)
if len(users_to_activate) > 0:
print("Adding %s subscriptions" % (len(users_to_activate),))