diff --git a/zerver/views/streams.py b/zerver/views/streams.py index 1182e06d6c..66761ec821 100644 --- a/zerver/views/streams.py +++ b/zerver/views/streams.py @@ -313,7 +313,7 @@ def add_subscriptions_backend(request, user_profile, content=msg)) if announce and len(created_streams) > 0: - notifications_stream = user_profile.realm.notifications_stream # type: Optional[Stream] + notifications_stream = user_profile.realm.get_notifications_stream() if notifications_stream is not None: if len(created_streams) > 1: stream_msg = "the following streams: %s" % (", ".join('#**%s**' % s.name for s in created_streams))