2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Don't use MTP* for reply markup data.

This commit is contained in:
John Preston
2021-10-02 15:28:21 +04:00
parent 1790828b01
commit 21ac2b8f3a
23 changed files with 425 additions and 334 deletions

View File

@@ -550,7 +550,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
const QString &postAuthor,
const TextWithEntities &text,
const MTPMessageMedia &media,
const MTPReplyMarkup &markup,
HistoryMessageMarkupData &&markup,
uint64 groupedId) {
return addNewItem(
makeMessage(
@@ -563,7 +563,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
postAuthor,
text,
media,
markup,
std::move(markup),
groupedId),
true);
}
@@ -596,7 +596,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
const QString &postAuthor,
not_null<DocumentData*> document,
const TextWithEntities &caption,
const MTPReplyMarkup &markup) {
HistoryMessageMarkupData &&markup) {
return addNewItem(
makeMessage(
id,
@@ -608,7 +608,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
postAuthor,
document,
caption,
markup),
std::move(markup)),
true);
}
@@ -622,7 +622,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
const QString &postAuthor,
not_null<PhotoData*> photo,
const TextWithEntities &caption,
const MTPReplyMarkup &markup) {
HistoryMessageMarkupData &&markup) {
return addNewItem(
makeMessage(
id,
@@ -634,7 +634,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
postAuthor,
photo,
caption,
markup),
std::move(markup)),
true);
}
@@ -647,7 +647,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
PeerId from,
const QString &postAuthor,
not_null<GameData*> game,
const MTPReplyMarkup &markup) {
HistoryMessageMarkupData &&markup) {
return addNewItem(
makeMessage(
id,
@@ -658,7 +658,7 @@ not_null<HistoryItem*> History::addNewLocalMessage(
from,
postAuthor,
game,
markup),
std::move(markup)),
true);
}