2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Refactored ApiWrap::editMedia.

- Slightly refactored checkEntitiesAndViewsUpdate.
 - Slightly refactored HistoryMessage.
This commit is contained in:
23rd
2019-03-30 11:13:16 +03:00
committed by John Preston
parent 0e4d85a5e5
commit be2b2cbf7e
5 changed files with 18 additions and 24 deletions

View File

@@ -139,7 +139,6 @@ namespace App {
auto entities = m.has_entities()
? TextUtilities::EntitiesFromMTP(m.ventities.v)
: EntitiesInText();
const auto media = m.has_media() ? &m.vmedia : nullptr;
existing->setText({ text, entities });
existing->updateSentMedia(m.has_media() ? &m.vmedia : nullptr);
existing->updateReplyMarkup(m.has_reply_markup()