Skip to content

Commit 42448ec

Browse files
committed
boxes: Unify case sensitive topic names for stream narrows.
1 parent 880b2a6 commit 42448ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zulipterminal/ui_tools/boxes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
STREAM_TOPIC_SEPARATOR,
1818
)
1919
from zulipterminal.helper import (
20-
Message, format_string, match_emoji, match_group, match_stream, match_user,
20+
Message, compare_lowercase, format_string, match_emoji, match_group,
21+
match_stream, match_user,
2122
)
2223
from zulipterminal.ui_tools.tables import render_table
2324
from zulipterminal.urwid_types import urwid_Size
@@ -315,7 +316,7 @@ def need_recipient_header(self) -> bool:
315316
if self.message['type'] == 'stream':
316317
return not (
317318
last_msg['type'] == 'stream'
318-
and self.topic_name == last_msg['subject']
319+
and compare_lowercase(self.topic_name, last_msg['subject'])
319320
and self.stream_name == last_msg['display_recipient']
320321
)
321322
elif self.message['type'] == 'private':

0 commit comments

Comments
 (0)