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…
Reference in New Issue