Skip to content

Commit 0338c11

Browse files
committed
boxes: Unify case sensitive topic names for stream narrows.
1 parent 110166e commit 0338c11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zulipterminal/ui_tools/boxes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
STREAM_TOPIC_SEPARATOR, TIME_MENTION_MARKER,
2121
)
2222
from zulipterminal.helper import (
23-
Message, format_string, match_emoji, match_group, match_stream,
24-
match_topics, match_user,
23+
Message, compare_lowercase, format_string, match_emoji, match_group,
24+
match_stream, match_topics, match_user,
2525
)
2626
from zulipterminal.ui_tools.tables import render_table
2727
from zulipterminal.urwid_types import urwid_Size
@@ -432,7 +432,7 @@ def need_recipient_header(self) -> bool:
432432
if self.message['type'] == 'stream':
433433
return not (
434434
last_msg['type'] == 'stream'
435-
and self.topic_name == last_msg['subject']
435+
and compare_lowercase(self.topic_name, last_msg['subject'])
436436
and self.stream_name == last_msg['display_recipient']
437437
)
438438
elif self.message['type'] == 'private':

0 commit comments

Comments
 (0)