mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fix local online finishing.
This commit is contained in:
parent
981909e567
commit
f53b64bc72
2 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,7 @@ 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()) {
|
||||
} else if (status.isRecently() || status.isHiddenByMe()) {
|
||||
return tr::lng_status_recently(tr::now);
|
||||
} else if (status.isWithinWeek()) {
|
||||
return tr::lng_status_last_week(tr::now);
|
||||
|
|
|
@ -392,6 +392,7 @@ void Cover::setupShowLastSeen() {
|
|||
const auto wasShown = !_showLastSeen->isHidden();
|
||||
const auto hiddenByMe = user->lastseen().isHiddenByMe();
|
||||
const auto shown = hiddenByMe
|
||||
&& !user->lastseen().isOnline(base::unixtime::now())
|
||||
&& !premium
|
||||
&& user->session().premiumPossible();
|
||||
_showLastSeen->setVisible(shown);
|
||||
|
|
Loading…
Add table
Reference in a new issue