Fix custom emoji interaction with other animations.
This commit is contained in:
parent
3c739912ba
commit
bacc30e296
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue