mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Strict validity check for local lastseen.
This commit is contained in:
parent
f091f2b344
commit
ead5dbe368
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ private:
|
||||||
static constexpr auto kValidAfter = kLifeStartDate + kSpecialValueSkip;
|
static constexpr auto kValidAfter = kLifeStartDate + kSpecialValueSkip;
|
||||||
|
|
||||||
[[nodiscard]] bool valid() const {
|
[[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)
|
LastseenStatus(uint32 value, bool available, bool hiddenByMe)
|
||||||
|
|
Loading…
Add table
Reference in a new issue