mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix local online finishing.
This commit is contained in:
@@ -66,7 +66,7 @@ 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()) {
|
} else if (status.isRecently() || status.isHiddenByMe()) {
|
||||||
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);
|
||||||
|
@@ -392,6 +392,7 @@ void Cover::setupShowLastSeen() {
|
|||||||
const auto wasShown = !_showLastSeen->isHidden();
|
const auto wasShown = !_showLastSeen->isHidden();
|
||||||
const auto hiddenByMe = user->lastseen().isHiddenByMe();
|
const auto hiddenByMe = user->lastseen().isHiddenByMe();
|
||||||
const auto shown = hiddenByMe
|
const auto shown = hiddenByMe
|
||||||
|
&& !user->lastseen().isOnline(base::unixtime::now())
|
||||||
&& !premium
|
&& !premium
|
||||||
&& user->session().premiumPossible();
|
&& user->session().premiumPossible();
|
||||||
_showLastSeen->setVisible(shown);
|
_showLastSeen->setVisible(shown);
|
||||||
|
Reference in New Issue
Block a user