aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2018-12-28 18:05:09 +0100
committerfiaxh <git@lightrise.org>2018-12-29 13:10:24 +0100
commite455a229933ab292fecd6eb38ee7b84304a8a1e4 (patch)
tree1203cc938c72731b1daa2192f7c915bd183c48fc /main/src/ui/conversation_selector
parent5a4e50935956e9311f5471f4c8297bcc10716e9e (diff)
downloaddino-e455a229933ab292fecd6eb38ee7b84304a8a1e4.tar.gz
dino-e455a229933ab292fecd6eb38ee7b84304a8a1e4.zip
ConversationSelector: Display time "Yesterday" after date change
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/conversation_row.vala2
1 files changed, 1 insertions, 1 deletions
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() ?