Fix empty web page preview removing.

This commit is contained in:
John Preston 2020-06-30 20:22:47 +04:00
parent 20ea3af2f0
commit 5ea5d3c60d
2 changed files with 2 additions and 1 deletions

View File

@ -2559,6 +2559,7 @@ not_null<WebPageData*> Session::processWebpage(const MTPWebPage &data) {
const auto result = webpage(data.c_webPageEmpty().vid().v);
if (result->pendingTill > 0) {
result->pendingTill = -1; // failed
notifyWebPageUpdateDelayed(result);
}
return result;
} break;

View File

@ -892,7 +892,7 @@ void Stickers::gifsReceived(const QVector<MTPDocument> &items, int32 hash) {
const auto document = owner().processDocument(item);
if (!document->isGifv()) {
LOG(("API Error: "
"bad document returned in HistoryWidget::savedGifsGot!"));
"bad document returned in Stickers::gifsReceived!"));
continue;
}