Skip to content

Commit c444254

Browse files
committed
model: Use stream accessor function to access stream name.
This commit replaces the direct use of stream_dict to access the 'name' property, with the stream accessor function introduced in the earlier commit. Since the new stream accessor function accesses subscribed streams, was subscribed streams and never-subscribed stream, the keyerror issue described in issue #816 is resolved.
1 parent a4adaff commit c444254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zulipterminal/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def is_muted_topic(self, stream_id: int, topic: str) -> bool:
890890
"""
891891
Returns True if topic is muted via muted_topics.
892892
"""
893-
stream_name = self.stream_dict[stream_id]["name"]
893+
stream_name = self.stream_property(stream_id, "name")
894894
topic_to_search = (stream_name, topic)
895895
return topic_to_search in self._muted_topics
896896

0 commit comments

Comments
 (0)