From d6e03c3e4806b23e99b0281ced5ac5c8e590177b Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 19 Jan 2022 18:52:13 +0300 Subject: [PATCH] Fix possible crash with incorrect local time. --- Telegram/SourceFiles/data/data_message_reactions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_message_reactions.cpp b/Telegram/SourceFiles/data/data_message_reactions.cpp index 6499fe89c..1ffc5494e 100644 --- a/Telegram/SourceFiles/data/data_message_reactions.cpp +++ b/Telegram/SourceFiles/data/data_message_reactions.cpp @@ -415,7 +415,7 @@ void Reactions::updateAllInHistory(not_null 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);