mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Apply invert_media flag on message send finish.
This commit is contained in:
parent
6a45a862dd
commit
acd40cbeb6
1 changed files with 6 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue