mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix possible crash with incorrect local time.
This commit is contained in:
parent
e91eecf34f
commit
d6e03c3e48
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ void Reactions::updateAllInHistory(not_null<PeerData*> peer, bool enabled) {
|
|||
|
||||
void Reactions::repaintCollected() {
|
||||
const auto now = crl::now();
|
||||
auto closest = 0;
|
||||
auto closest = crl::time();
|
||||
for (auto i = begin(_repaintItems); i != end(_repaintItems);) {
|
||||
if (i->second <= now) {
|
||||
_owner->requestItemRepaint(i->first);
|
||||
|
|
Loading…
Add table
Reference in a new issue