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

@@ -27,7 +27,7 @@ class Command(ZulipBaseCommand):
stream_name = options["stream"].strip()
stream = get_stream(stream_name, realm)
result = bulk_remove_subscriptions(user_profiles, [stream])
result = bulk_remove_subscriptions(user_profiles, [stream], self.get_client())
not_subscribed = result[1]
not_subscribed_users = {tup[0] for tup in not_subscribed}