mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-09 13:33:01 +02:00
Fix request pending webpage.
This commit is contained in:
parent
c7ed36d558
commit
097424c535
1 changed files with 4 additions and 3 deletions
|
@ -1353,9 +1353,7 @@ void Session::webpageApplyFields(
|
||||||
int duration,
|
int duration,
|
||||||
const QString &author,
|
const QString &author,
|
||||||
TimeId pendingTill) {
|
TimeId pendingTill) {
|
||||||
if (!page->pendingTill && pendingTill > 0) {
|
const auto requestPending = (!page->pendingTill && pendingTill > 0);
|
||||||
_session->api().requestWebPageDelayed(page);
|
|
||||||
}
|
|
||||||
const auto changed = page->applyChanges(
|
const auto changed = page->applyChanges(
|
||||||
type,
|
type,
|
||||||
url,
|
url,
|
||||||
|
@ -1368,6 +1366,9 @@ void Session::webpageApplyFields(
|
||||||
duration,
|
duration,
|
||||||
author,
|
author,
|
||||||
pendingTill);
|
pendingTill);
|
||||||
|
if (requestPending) {
|
||||||
|
_session->api().requestWebPageDelayed(page);
|
||||||
|
}
|
||||||
if (changed) {
|
if (changed) {
|
||||||
notifyWebPageUpdateDelayed(page);
|
notifyWebPageUpdateDelayed(page);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue