From 80d55d272fa179df32a373959142cb8c1c6ce26c Mon Sep 17 00:00:00 2001 From: Preet Mishra Date: Tue, 28 Jul 2020 00:12:46 +0530 Subject: [PATCH] boxes: Unify case sensitive topic names for stream narrows. --- zulipterminal/ui_tools/boxes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zulipterminal/ui_tools/boxes.py b/zulipterminal/ui_tools/boxes.py index ea16c47d4f6..037167ad761 100644 --- a/zulipterminal/ui_tools/boxes.py +++ b/zulipterminal/ui_tools/boxes.py @@ -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 @@ -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':