Fix crash in stories with stickers-reactions

This commit is contained in:
Neurotoxin001 2025-06-27 18:10:10 +03:00
parent 505b98fbfc
commit 616a80ff31

View file

@ -273,8 +273,9 @@ ReactionView::ReactionView(
void ReactionView::setupCustomChatStylePalette() { void ReactionView::setupCustomChatStylePalette() {
const auto color = uchar(_data.dark ? 255 : 0); const auto color = uchar(_data.dark ? 255 : 0);
_chatStyle->historyTextInFg().set(color, color, color, 255); Ui::ChatStyle custom{_chatStyle.get()};
_chatStyle->applyCustomPalette(_chatStyle.get()); custom.historyTextInFg().set(color, color, color, 255);
_chatStyle->applyCustomPalette(&custom);
} }
void ReactionView::setAreaGeometry(QRect geometry, float64 radius) { void ReactionView::setAreaGeometry(QRect geometry, float64 radius) {