From acd40cbeb669bff8e49dcca7b395b6c721771a0f Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 4 Sep 2024 18:32:48 +0400 Subject: [PATCH] Apply invert_media flag on message send finish. --- Telegram/SourceFiles/history/history_item.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 004720dfd..3a9b55306 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -1847,6 +1847,12 @@ void HistoryItem::applyEdition( } void HistoryItem::applySentMessage(const MTPDmessage &data) { + if (data.is_invert_media()) { + _flags |= MessageFlag::InvertMedia; + } else { + _flags &= ~MessageFlag::InvertMedia; + } + updateSentContent({ qs(data.vmessage()), Api::EntitiesFromMTP(