mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Merge tag 'v6.1.3' into dev
This commit is contained in:
@@ -55,6 +55,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "support/support_helper.h"
|
||||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_chat.h"
|
||||
#include "styles/style_credits.h"
|
||||
#include "styles/style_dialogs.h" // dialogsMiniReplyStory.
|
||||
#include "styles/style_settings.h"
|
||||
#include "styles/style_widgets.h"
|
||||
@@ -775,11 +776,6 @@ ReplyKeyboard::ReplyKeyboard(
|
||||
const auto context = _item->fullId();
|
||||
const auto rowCount = int(markup->data.rows.size());
|
||||
_rows.reserve(rowCount);
|
||||
const auto buttonEmoji = Ui::Text::SingleCustomEmoji(
|
||||
owner->customEmojiManager().registerInternalEmoji(
|
||||
st::settingsPremiumIconStar,
|
||||
QMargins(0, -st::moderateBoxExpandInnerSkip, 0, 0),
|
||||
true));
|
||||
for (auto i = 0; i != rowCount; ++i) {
|
||||
const auto &row = markup->data.rows[i];
|
||||
const auto rowSize = int(row.size());
|
||||
@@ -814,7 +810,8 @@ ReplyKeyboard::ReplyKeyboard(
|
||||
auto firstPart = true;
|
||||
for (const auto &part : text.split(QChar(0x2B50))) {
|
||||
if (!firstPart) {
|
||||
result.append(buttonEmoji);
|
||||
result.append(Ui::Text::IconEmoji(
|
||||
&st::starIconEmojiLarge));
|
||||
}
|
||||
result.append(part);
|
||||
firstPart = false;
|
||||
@@ -833,11 +830,7 @@ ReplyKeyboard::ReplyKeyboard(
|
||||
button.text.setMarkedText(
|
||||
_st->textStyle(),
|
||||
TextUtilities::SingleLine(textWithEntities),
|
||||
kMarkupTextOptions,
|
||||
Core::TextContext({
|
||||
.session = &item->history()->owner().session(),
|
||||
.repaint = [=] { _st->repaint(item); },
|
||||
}));
|
||||
kMarkupTextOptions);
|
||||
} else {
|
||||
button.text.setText(
|
||||
_st->textStyle(),
|
||||
@@ -1371,11 +1364,7 @@ MessageFactcheck FromMTP(
|
||||
}
|
||||
const auto &data = factcheck->data();
|
||||
if (const auto text = data.vtext()) {
|
||||
const auto &data = text->data();
|
||||
result.text = {
|
||||
qs(data.vtext()),
|
||||
Api::EntitiesFromMTP(session, data.ventities().v),
|
||||
};
|
||||
result.text = Api::ParseTextWithEntities(session, *text);
|
||||
}
|
||||
if (const auto country = data.vcountry()) {
|
||||
result.country = qs(country->v);
|
||||
|
||||
Reference in New Issue
Block a user