parent
de4eb1e59b
commit
8615a25cd1
|
@ -155,7 +155,7 @@ bool WebPage::HasButton(not_null<WebPageData*> webpage) {
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize WebPage::countOptimalSize() {
|
QSize WebPage::countOptimalSize() {
|
||||||
if (_data->pendingTill) {
|
if (_data->pendingTill || _data->failed) {
|
||||||
return { 0, 0 };
|
return { 0, 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ QSize WebPage::countOptimalSize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize WebPage::countCurrentSize(int newWidth) {
|
QSize WebPage::countCurrentSize(int newWidth) {
|
||||||
if (_data->pendingTill) {
|
if (_data->pendingTill || _data->failed) {
|
||||||
return { newWidth, minHeight() };
|
return { newWidth, minHeight() };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -891,6 +891,7 @@ void WebPage::playAnimation(bool autoplay) {
|
||||||
bool WebPage::isDisplayed() const {
|
bool WebPage::isDisplayed() const {
|
||||||
const auto item = _parent->data();
|
const auto item = _parent->data();
|
||||||
return !_data->pendingTill
|
return !_data->pendingTill
|
||||||
|
&& !_data->failed
|
||||||
&& !item->Has<HistoryMessageLogEntryOriginal>();
|
&& !item->Has<HistoryMessageLogEntryOriginal>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue