refactor: Remove recipient from access_stream_by_name.

This commit is contained in:
Steve Howell
2020-10-16 16:00:07 +00:00
committed by Tim Abbott
parent a51b483f1a
commit e1bcf6124f
6 changed files with 13 additions and 13 deletions

View File

@@ -78,7 +78,7 @@ def detect_narrowed_window(request: HttpRequest,
try:
# TODO: We should support stream IDs and PMs here as well.
narrow_stream_name = request.GET.get("stream")
(narrow_stream, ignored_rec, ignored_sub) = access_stream_by_name(
(narrow_stream, ignored_sub) = access_stream_by_name(
user_profile, narrow_stream_name)
narrow = [["stream", narrow_stream.name]]
except Exception: