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

Don't refresh large emoji messages when sent.

This commit is contained in:
John Preston
2019-08-07 15:38:26 +01:00
parent bc83df9d7f
commit d7f7a03eb4
6 changed files with 19 additions and 11 deletions

View File

@@ -1629,11 +1629,10 @@ bool Session::checkEntitiesAndViewsUpdate(const MTPDmessage &data) {
return result;
}();
if (const auto existing = message(peerToChannel(peer), data.vid().v)) {
existing->setText({
existing->updateSentContent({
qs(data.vmessage()),
TextUtilities::EntitiesFromMTP(data.ventities().value_or_empty())
});
existing->updateSentMedia(data.vmedia());
}, data.vmedia());
existing->updateReplyMarkup(data.vreply_markup());
existing->updateForwardedInfo(data.vfwd_from());
existing->setViewsCount(data.vviews().value_or(-1));