Fix custom emoji interaction with other animations.

This commit is contained in:
John Preston 2022-10-06 17:05:23 +04:00
parent 3c739912ba
commit bacc30e296
1 changed files with 8 additions and 0 deletions

View File

@ -721,6 +721,14 @@ void CustomEmojiManager::repaintLater(
Ui::CustomEmoji::RepaintRequest request) {
auto &bunch = _repaints[request.duration];
if (bunch.when < request.when) {
if (bunch.when > 0) {
for (const auto &already : bunch.instances) {
if (already.get() == instance) {
// Still waiting for full bunch repaint, don't bump.
return;
}
}
}
bunch.when = request.when;
}
bunch.instances.emplace_back(instance);