2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Applying the ReplyMarkup returned in updateNewMessage. #2543

Also InputField now can be forced to hide placeholder.
This commit is contained in:
John Preston
2016-10-20 18:26:55 +03:00
parent 20d04a065e
commit c773bffec6
5 changed files with 96 additions and 108 deletions

View File

@@ -1105,6 +1105,7 @@ namespace {
auto entities = m.has_entities() ? entitiesFromMTP(m.ventities.c_vector().v) : EntitiesInText();
existing->setText({ text, entities });
existing->updateMedia(m.has_media() ? (&m.vmedia) : nullptr);
existing->updateReplyMarkup(m.has_reply_markup() ? (&m.vreply_markup) : nullptr);
existing->setViewsCount(m.has_views() ? m.vviews.v : -1);
existing->addToOverview(AddToOverviewNew);