From e0dd77f0c3b9f9c64537c00a2b0cf7312ae66e21 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 6 Jan 2025 21:10:49 +0400 Subject: [PATCH] Fix possible crash in forward box. --- Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index bdd3bdc24..1147922a0 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -2282,6 +2282,8 @@ void ParticipantsBoxSearchController::restoreState( _allLoaded = my->allLoaded; _offset = my->offset; _query = my->query; + _timer.cancel(); + _requestId = 0; if (my->wasLoading) { searchOnServer(); }