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 b2cb039 commit 80d55d2
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 @@ -13,7 +13,8 @@
from zulipterminal import emoji_names
from zulipterminal.config.keys import is_command_key, keys_for_command
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 @@ -311,7 +312,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 80d55d2

Please sign in to comment.