From 04f040c9c55cd318b72deb0abac9cadae8e319ab Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 29 Oct 2023 07:09:28 +0400 Subject: [PATCH] Fix a crash in emoji status set. --- Telegram/SourceFiles/ui/effects/emoji_fly_animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/effects/emoji_fly_animation.cpp b/Telegram/SourceFiles/ui/effects/emoji_fly_animation.cpp index 559e4ed35..ef8637974 100644 --- a/Telegram/SourceFiles/ui/effects/emoji_fly_animation.cpp +++ b/Telegram/SourceFiles/ui/effects/emoji_fly_animation.cpp @@ -65,7 +65,7 @@ EmojiFlyAnimation::EmojiFlyAnimation( QRect( rect.topLeft() + QPoint(skipx, skipy), QSize(_flySize, _flySize)), - _textColor(), + (_textColor ? _textColor() : st::infoPeerBadge.premiumFg->c), clip, crl::now()); if (_areaUpdated || _area.isEmpty()) {