mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 05:37:45 +00:00
Fix local online finishing.
This commit is contained in:
parent
981909e567
commit
f53b64bc72
@ -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…
x
Reference in New Issue
Block a user