Fix crash in premium preview.

This commit is contained in:
John Preston
2025-08-31 23:34:20 +04:00
parent 51a58182ee
commit a37528b377
@@ -64,7 +64,9 @@ Bubble::Bubble(
const auto texts = _textFactory(0);
_numberAnimation.setText(texts.counter, 0);
_numberAnimation.finishAnimating();
if (!texts.additional.isEmpty()) {
_additional.setText(_st.additionalStyle, texts.additional);
}
}
crl::time Bubble::SlideNoDeflectionDuration() {
@@ -120,8 +122,10 @@ void Bubble::setCounter(int value) {
_counter = value;
const auto texts = _textFactory(value);
_numberAnimation.setText(texts.counter, value);
if (!texts.additional.isEmpty()) {
_additional.setText(_st.additionalStyle, texts.additional);
}
}
}
void Bubble::setTailEdge(EdgeProgress edge) {