Custom emoji not pausing by default.

This commit is contained in:
John Preston 2022-07-01 17:32:35 +04:00
parent 0b829240fd
commit 464c6a6171
2 changed files with 2 additions and 2 deletions

View file

@ -1414,7 +1414,7 @@ void CustomEmojiObject::drawObject(
int(base::SafeRound(rect.y())),
_now,
st::defaultTextPalette.spoilerActiveBg->c,
_paused());
_paused && _paused());
}
void CustomEmojiObject::clear() {

View file

@ -268,7 +268,7 @@ public:
void setTagMimeProcessor(Fn<QString(QStringView)> processor);
void setCustomEmojiFactory(
CustomEmojiFactory factory,
Fn<bool()> paused);
Fn<bool()> paused = nullptr);
struct EditLinkSelection {
int from = 0;