Skip to content

Commit 0902171

Browse files
committed
messages: Show headers if is_search_narrow().
Previously, when text searching, messages appear adjacently under the same heading, this can be confusing since they appear sequentially but there may be messages inbetween that don't meet the search criteria. Fixes part of zulip#1550.
1 parent dc4d9bc commit 0902171

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zulipterminal/ui_tools/messages.py

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def need_recipient_header(self) -> bool:
120120
return False
121121
if len(self.model.narrow) == 2 and self.model.narrow[1][0] == "topic":
122122
return False
123+
if self.model.is_search_narrow():
124+
return True
123125

124126
last_msg = self.last_message
125127
if self.message["type"] == "stream":

0 commit comments

Comments
 (0)