mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 15:17:07 +02:00
Fix last seen within week/month.
This commit is contained in:
parent
46b69a938b
commit
f7d698b9ff
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue