From e455a229933ab292fecd6eb38ee7b84304a8a1e4 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 28 Dec 2018 18:05:09 +0100 Subject: [PATCH] ConversationSelector: Display time "Yesterday" after date change --- main/src/ui/conversation_selector/conversation_row.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/ui/conversation_selector/conversation_row.vala b/main/src/ui/conversation_selector/conversation_row.vala index 992cf107..88234006 100644 --- a/main/src/ui/conversation_selector/conversation_row.vala +++ b/main/src/ui/conversation_selector/conversation_row.vala @@ -258,7 +258,7 @@ public class ConversationRow : ListBoxRow { return datetime.format(_("%b %d")); } else if (timespan > 2 * TimeSpan.DAY) { return datetime.format("%a"); - } else if (timespan > 1 * TimeSpan.DAY) { + } else if (datetime.get_day_of_month() != now.get_day_of_month()) { return _("Yesterday"); } else if (timespan > 9 * TimeSpan.MINUTE) { return datetime.format(Util.is_24h_format() ?