Fix custom emoji in poll results view.

This commit is contained in:
John Preston 2025-03-20 17:21:50 +04:00
parent 46e7b6d6df
commit c924fcb91f

View file

@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "info/polls/info_polls_results_widget.h" #include "info/polls/info_polls_results_widget.h"
#include "lang/lang_keys.h" #include "lang/lang_keys.h"
#include "core/ui_integration.h"
#include "data/data_peer.h" #include "data/data_peer.h"
#include "data/data_poll.h" #include "data/data_poll.h"
#include "data/data_session.h" #include "data/data_session.h"
@ -461,7 +462,9 @@ ListController *CreateAnswerRows(
.append(QString::fromUtf8(" \xe2\x80\x94 ")) .append(QString::fromUtf8(" \xe2\x80\x94 "))
.append(QString::number(percent)) .append(QString::number(percent))
.append('%')), .append('%')),
st::boxDividerLabel), st::boxDividerLabel,
st::defaultPopupMenu,
Core::TextContext({ .session = session })),
style::margins( style::margins(
st::pollResultsHeaderPadding.left(), st::pollResultsHeaderPadding.left(),
st::pollResultsHeaderPadding.top(), st::pollResultsHeaderPadding.top(),
@ -610,7 +613,9 @@ void InnerWidget::setupContent() {
object_ptr<Ui::FlatLabel>( object_ptr<Ui::FlatLabel>(
_content, _content,
rpl::single(_poll->question), rpl::single(_poll->question),
st::pollResultsQuestion), st::pollResultsQuestion,
st::defaultPopupMenu,
Core::TextContext({ .session = &_controller->session() })),
st::boxRowPadding); st::boxRowPadding);
Ui::AddSkip(_content, st::boxLittleSkip / 2); Ui::AddSkip(_content, st::boxLittleSkip / 2);
_content->add( _content->add(