Fix last seen within week/month.

This commit is contained in:
John Preston 2024-07-11 14:23:34 +02:00
parent 46b69a938b
commit f7d698b9ff

View file

@ -65,12 +65,14 @@ std::optional<QString> OnlineTextCommon(LastseenStatus status, TimeId now) {
return tr::lng_status_online(tr::now);
} else if (status.isLongAgo()) {
return tr::lng_status_offline(tr::now);
} else if (status.isRecently() || status.isHidden()) {
} else if (status.isRecently()) {
return tr::lng_status_recently(tr::now);
} else if (status.isWithinWeek()) {
return tr::lng_status_last_week(tr::now);
} else if (status.isWithinMonth()) {
return tr::lng_status_last_month(tr::now);
} else if (status.isHidden()) {
return tr::lng_status_recently(tr::now);
}
return std::nullopt;
}