Skip to content

Commit

Permalink
Fix local online finishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 18, 2024
1 parent 981909e commit f53b64b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/data/data_peer_values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions Telegram/SourceFiles/info/profile/info_profile_cover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f53b64b

Please sign in to comment.