mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix "long time ago" for users who blocked me.
This commit is contained in:
parent
d82e48f8e4
commit
56bce70558
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue