mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-01 17:43:03 +02:00
Fix crash in stories with stickers-reactions
This commit is contained in:
parent
505b98fbfc
commit
616a80ff31
1 changed files with 3 additions and 2 deletions
|
@ -273,8 +273,9 @@ ReactionView::ReactionView(
|
|||
|
||||
void ReactionView::setupCustomChatStylePalette() {
|
||||
const auto color = uchar(_data.dark ? 255 : 0);
|
||||
_chatStyle->historyTextInFg().set(color, color, color, 255);
|
||||
_chatStyle->applyCustomPalette(_chatStyle.get());
|
||||
Ui::ChatStyle custom{_chatStyle.get()};
|
||||
custom.historyTextInFg().set(color, color, color, 255);
|
||||
_chatStyle->applyCustomPalette(&custom);
|
||||
}
|
||||
|
||||
void ReactionView::setAreaGeometry(QRect geometry, float64 radius) {
|
||||
|
|
Loading…
Add table
Reference in a new issue