mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Strict validity check for local lastseen.
This commit is contained in:
@@ -112,7 +112,9 @@ private:
|
||||
static constexpr auto kValidAfter = kLifeStartDate + kSpecialValueSkip;
|
||||
|
||||
[[nodiscard]] bool valid() const {
|
||||
return !_available || (_value >= kSpecialValueSkip);
|
||||
constexpr auto kMaxSum = uint32(std::numeric_limits<TimeId>::max());
|
||||
return (kMaxSum - _value > uint32(kLifeStartDate))
|
||||
&& (!_available || (_value >= kSpecialValueSkip));
|
||||
}
|
||||
|
||||
LastseenStatus(uint32 value, bool available, bool hiddenByMe)
|
||||
|
||||
Reference in New Issue
Block a user