Don't force toUpper in CustomEmojiTextBadge.

This commit is contained in:
John Preston
2025-12-23 17:07:58 +04:00
parent 926bb91fac
commit ebc22c5e3b
4 changed files with 4 additions and 4 deletions
@@ -380,7 +380,7 @@ void MessagesUi::setupBadges() {
auto helper = Ui::Text::CustomEmojiHelper();
const auto liveText = helper.paletteDependent(
Ui::Text::CustomEmojiTextBadge(
tr::lng_video_stream_live(tr::now),
tr::lng_video_stream_live(tr::now).toUpper(),
st::groupCallMessageBadge,
st::groupCallMessageBadgeMargin));
_liveBadge.setMarkedText(
@@ -549,7 +549,7 @@ void Header::setVideoStreamViewers(rpl::producer<int> viewers) {
auto helper = Ui::Text::CustomEmojiHelper();
const auto badge = helper.paletteDependent(
Ui::Text::CustomEmojiTextBadge(
tr::lng_video_stream_live(tr::now),
tr::lng_video_stream_live(tr::now).toUpper(),
st::groupCallMessageBadge,
st::groupCallMessageBadgeMargin));
const auto context = helper.context();
@@ -326,7 +326,7 @@ void AboutRatingBox(
const QString &text,
const style::RoundButton &st) {
return helper.paletteDependent(
Text::CustomEmojiTextBadge(text, st));
Text::CustomEmojiTextBadge(text.toUpper(), st));
};
const auto makeActive = [&](const QString &text) {
return makeBadge(text, st::customEmojiTextBadge);