From d838e6d0ecf2af14735da11f6e16a8831af01269 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 30 Dec 2018 01:04:52 -0500 Subject: [PATCH] Fix unread message conversation title display --- mod/message.php | 3 +-- view/theme/frio/templates/mail_list.tpl | 11 ++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mod/message.php b/mod/message.php index 9ef55fbfe8..f36b3ffa3b 100644 --- a/mod/message.php +++ b/mod/message.php @@ -499,7 +499,6 @@ function render_messages(array $msg, $t) $participants = L10n::t("%s and You", $rr['from-name']); } - $subject_e = (($rr['mailseen']) ? $rr['title'] : '' . $rr['title'] . ''); $body_e = $rr['body']; $to_name_e = $rr['name']; @@ -517,7 +516,7 @@ function render_messages(array $msg, $t) '$from_addr' => defaults($contact, 'addr', ''), '$sparkle' => ' sparkle', '$from_photo' => ProxyUtils::proxifyUrl($from_photo, false, ProxyUtils::SIZE_THUMB), - '$subject' => $subject_e, + '$subject' => $rr['title'], '$delete' => L10n::t('Delete conversation'), '$body' => $body_e, '$to_name' => $to_name_e, diff --git a/view/theme/frio/templates/mail_list.tpl b/view/theme/frio/templates/mail_list.tpl index 4a797d47c0..bfc21aabaf 100644 --- a/view/theme/frio/templates/mail_list.tpl +++ b/view/theme/frio/templates/mail_list.tpl @@ -12,7 +12,16 @@
{{$ago}}

{{$from_name}}

-
{{$subject}}
+
+ + {{if !$seen}} + + {{/if}} + {{$subject}} + {{if !$seen}} + + {{/if}} +