diff options
author | fiaxh <git@lightrise.org> | 2018-12-28 18:05:09 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2018-12-29 13:10:24 +0100 |
commit | e455a229933ab292fecd6eb38ee7b84304a8a1e4 (patch) | |
tree | 1203cc938c72731b1daa2192f7c915bd183c48fc | |
parent | 5a4e50935956e9311f5471f4c8297bcc10716e9e (diff) | |
download | dino-e455a229933ab292fecd6eb38ee7b84304a8a1e4.tar.gz dino-e455a229933ab292fecd6eb38ee7b84304a8a1e4.zip |
ConversationSelector: Display time "Yesterday" after date change
-rw-r--r-- | main/src/ui/conversation_selector/conversation_row.vala | 2 |
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() ? |