From 29663a410aa60ae1584aaf3c8bfe3c850926a187 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 8 Oct 2022 17:13:26 +0300 Subject: [PATCH] Added decimal separators to count of participants in group call bar. --- Telegram/SourceFiles/calls/group/calls_group_panel.cpp | 2 +- Telegram/SourceFiles/ui/chat/group_call_bar.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_panel.cpp b/Telegram/SourceFiles/calls/group/calls_group_panel.cpp index c1e063146..d6da97966 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_panel.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_panel.cpp @@ -2357,7 +2357,7 @@ void Panel::refreshTitle() { auto countText = _call->real( ) | rpl::map([=](not_null real) { return tr::lng_group_call_rtmp_viewers( - lt_count, + lt_count_decimal, real->fullCountValue( ) | rpl::map([=](int count) { return std::max(float64(count), 1.); diff --git a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp index 0622a681e..ec79c490d 100644 --- a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp +++ b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp @@ -320,7 +320,10 @@ void GroupCallBar::paint(Painter &p) { ? tr::lng_group_call_starts_channel : tr::lng_group_call_starts)(tr::now, lt_when, when) : _content.count > 0 - ? tr::lng_group_call_members(tr::now, lt_count, _content.count) + ? tr::lng_group_call_members( + tr::now, + lt_count_decimal, + _content.count) : tr::lng_group_call_no_members(tr::now))); const auto size = st::historyGroupCallUserpics.size;