ConversationSelector: Display time "Yesterday" after date change

This commit is contained in:
fiaxh 2018-12-28 18:05:09 +01:00
parent 5a4e509359
commit e455a22993

View file

@ -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() ?