mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Don't request IV two times in a row.
This commit is contained in:
parent
7addcf2d25
commit
2949cdab61
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue