mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Fix custom emoji interaction with other animations.
This commit is contained in:
@@ -721,6 +721,14 @@ void CustomEmojiManager::repaintLater(
|
|||||||
Ui::CustomEmoji::RepaintRequest request) {
|
Ui::CustomEmoji::RepaintRequest request) {
|
||||||
auto &bunch = _repaints[request.duration];
|
auto &bunch = _repaints[request.duration];
|
||||||
if (bunch.when < request.when) {
|
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.when = request.when;
|
||||||
}
|
}
|
||||||
bunch.instances.emplace_back(instance);
|
bunch.instances.emplace_back(instance);
|
||||||
|
Reference in New Issue
Block a user