mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Fix possible crash in stories.
This commit is contained in:
parent
8596b0309e
commit
1bf50d60d8
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ void Stories::scheduleExpireTimer() {
|
|||
const auto nearest = _expiring.front().first;
|
||||
const auto now = base::unixtime::now();
|
||||
const auto delay = (nearest > now)
|
||||
? (nearest - now)
|
||||
? std::min(nearest - now, 86'400)
|
||||
: 0;
|
||||
_expireTimer.callOnce(delay * crl::time(1000));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue