[poll-view] Applied lang decimal formatting to vote counts.

This commit is contained in:
23rd
2026-04-03 12:59:44 +03:00
parent 5328e8a750
commit eba39d12aa
@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_cloud_file.h"
#include "data/data_location.h"
#include "lang/lang_keys.h"
#include "lang/lang_tag.h"
#include "history/history.h"
#include "history/history_item.h"
#include "history/history_item_components.h"
@@ -2780,7 +2781,7 @@ void Poll::Options::updateAnswerVotesFromOriginal(
answer.votes = original.votes;
answer.filling = answer.votes / float64(maxVotes);
if (_owner->showVotes() && answer.votes) {
answer.votesCountString = QString::number(answer.votes);
answer.votesCountString = Lang::FormatCountDecimal(answer.votes);
answer.votesCountWidth = st::normalFont->width(
answer.votesCountString);
} else {