2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix "long time ago" for users who blocked me.

This commit is contained in:
John Preston
2024-04-23 21:47:57 +04:00
parent d82e48f8e4
commit 56bce70558

View File

@@ -747,8 +747,10 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
result->setLoadedStatus(PeerData::LoadedStatus::Normal);
}
if (status && !minimal) {
const auto lastseen = LastseenFromMTP(*status, result->lastseen());
if (!minimal) {
const auto lastseen = status
? LastseenFromMTP(*status, result->lastseen())
: Data::LastseenStatus::LongAgo(false);
if (result->updateLastseen(lastseen)) {
flags |= UpdateFlag::OnlineStatus;
}