mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Fix last seen within week/month.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user