Fix empty web page preview removing.
This commit is contained in:
parent
20ea3af2f0
commit
5ea5d3c60d
|
@ -2559,6 +2559,7 @@ not_null<WebPageData*> Session::processWebpage(const MTPWebPage &data) {
|
||||||
const auto result = webpage(data.c_webPageEmpty().vid().v);
|
const auto result = webpage(data.c_webPageEmpty().vid().v);
|
||||||
if (result->pendingTill > 0) {
|
if (result->pendingTill > 0) {
|
||||||
result->pendingTill = -1; // failed
|
result->pendingTill = -1; // failed
|
||||||
|
notifyWebPageUpdateDelayed(result);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
} break;
|
} break;
|
||||||
|
|
|
@ -892,7 +892,7 @@ void Stickers::gifsReceived(const QVector<MTPDocument> &items, int32 hash) {
|
||||||
const auto document = owner().processDocument(item);
|
const auto document = owner().processDocument(item);
|
||||||
if (!document->isGifv()) {
|
if (!document->isGifv()) {
|
||||||
LOG(("API Error: "
|
LOG(("API Error: "
|
||||||
"bad document returned in HistoryWidget::savedGifsGot!"));
|
"bad document returned in Stickers::gifsReceived!"));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue