Skip to content

Commit

Permalink
boxes: Unify case sensitive topic names for stream narrows.
Browse files Browse the repository at this point in the history
  • Loading branch information
preetmishra committed Jul 27, 2020
1 parent 880b2a6 commit 42448ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zulipterminal/ui_tools/boxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
STREAM_TOPIC_SEPARATOR,
)
from zulipterminal.helper import (
Message, format_string, match_emoji, match_group, match_stream, match_user,
Message, compare_lowercase, format_string, match_emoji, match_group,
match_stream, match_user,
)
from zulipterminal.ui_tools.tables import render_table
from zulipterminal.urwid_types import urwid_Size
Expand Down Expand Up @@ -315,7 +316,7 @@ def need_recipient_header(self) -> bool:
if self.message['type'] == 'stream':
return not (
last_msg['type'] == 'stream'
and self.topic_name == last_msg['subject']
and compare_lowercase(self.topic_name, last_msg['subject'])
and self.stream_name == last_msg['display_recipient']
)
elif self.message['type'] == 'private':
Expand Down

0 comments on commit 42448ec

Please sign in to comment.