From 2949cdab613aad2ea042605483dd80cf2aece6f0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 26 Apr 2024 19:48:28 +0400 Subject: [PATCH] Don't request IV two times in a row. --- Telegram/SourceFiles/iv/iv_instance.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/iv/iv_instance.cpp b/Telegram/SourceFiles/iv/iv_instance.cpp index babce1d6c..ab2e21327 100644 --- a/Telegram/SourceFiles/iv/iv_instance.cpp +++ b/Telegram/SourceFiles/iv/iv_instance.cpp @@ -813,6 +813,7 @@ void Instance::show( if (!urlChecked) { break; } + _fullRequested[_shownSession].emplace(event.url); _shownSession->api().request(MTPmessages_GetWebPage( MTP_string(event.url), MTP_int(0) @@ -947,6 +948,7 @@ void Instance::openWithIvPreferred( }; _ivRequestSession = session; _ivRequestUri = uri; + _fullRequested[session].emplace(url); _ivRequestId = session->api().request(MTPmessages_GetWebPage( MTP_string(url), MTP_int(0)