From c59cdbb92d400a28fe0a9f9de50b5dfee0494cf5 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 22 Oct 2016 21:29:56 -0700 Subject: [PATCH] gather_subscriptions: Fix missing subscriber data in email_dict. When we added data on never_subscribed streams to what populate_subscribers is called on, we failed to add the corresponding data on subscribers to email_dict, the mapping of user IDs to emails for the subscribers. --- zerver/lib/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 297311d043..a2cdbe5b4b 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -2759,7 +2759,7 @@ def gather_subscriptions_helper(user_profile): never_subscribed.append(stream_dict) user_ids = set() - for subs in [subscribed, unsubscribed]: + for subs in [subscribed, unsubscribed, never_subscribed]: for sub in subs: if 'subscribers' in sub: for subscriber in sub['subscribers']: