diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index 428c69b19d..435e167a1b 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -1452,7 +1452,7 @@ def decode_email_address(email): def gather_subscriptions(user_profile): # For now, don't display subscriptions for private messages. - subs = Subscription.objects.select_related().filter( + subs = Subscription.objects.select_related("recipient").filter( user_profile = user_profile, recipient__type = Recipient.STREAM)