Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions zulipterminal/ui_tools/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ def need_recipient_header(self) -> bool:
if len(self.model.narrow) == 2 and self.model.narrow[1][0] == "topic":
return False

if self.model.is_search_narrow():
if len(self.model.narrow) == 1:
return True
if len(self.model.narrow) == 2:
return self.message["type"] != "private"
if len(self.model.narrow) == 3:
return self.model.narrow[1][0] != "topic"

last_msg = self.last_message
if self.message["type"] == "stream":
return not (
Expand Down
Loading