mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +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);
|
return tr::lng_status_online(tr::now);
|
||||||
} else if (status.isLongAgo()) {
|
} else if (status.isLongAgo()) {
|
||||||
return tr::lng_status_offline(tr::now);
|
return tr::lng_status_offline(tr::now);
|
||||||
} else if (status.isRecently() || status.isHidden()) {
|
} else if (status.isRecently()) {
|
||||||
return tr::lng_status_recently(tr::now);
|
return tr::lng_status_recently(tr::now);
|
||||||
} else if (status.isWithinWeek()) {
|
} else if (status.isWithinWeek()) {
|
||||||
return tr::lng_status_last_week(tr::now);
|
return tr::lng_status_last_week(tr::now);
|
||||||
} else if (status.isWithinMonth()) {
|
} else if (status.isWithinMonth()) {
|
||||||
return tr::lng_status_last_month(tr::now);
|
return tr::lng_status_last_month(tr::now);
|
||||||
|
} else if (status.isHidden()) {
|
||||||
|
return tr::lng_status_recently(tr::now);
|
||||||
}
|
}
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue