We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa1b2b commit 5b6e384Copy full SHA for 5b6e384
zulipterminal/ui_tools/utils.py
@@ -20,7 +20,7 @@ def create_msg_box_list(
20
"""
21
MessageBox for every message displayed is created here.
22
23
- if not model.narrow and messages is None:
+ if not model.get_narrow() and messages is None:
24
messages = list(model.index["all_msg_ids"])
25
if messages is not None:
26
message_list = [model.index["messages"][id] for id in messages]
@@ -62,7 +62,7 @@ def is_muted(msg: Message, model: Any) -> bool:
62
if msg["type"] == "private": # noqa: SIM114
63
return False
64
# In a topic narrow
65
- elif len(model.narrow) == 2:
+ elif model.get_narrow_length() == 2:
66
67
elif model.is_muted_stream(msg["stream_id"]): # noqa: SIM114
68
return True
0 commit comments