mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-03 18:49:30 +00:00
Improved applying edition.
- Fixed cancel single media.
This commit is contained in:
@@ -170,16 +170,11 @@ namespace App {
|
||||
peerToChannel(peerId),
|
||||
message.vid.v);
|
||||
if (existing) {
|
||||
auto update = true;
|
||||
if (existing->isLocalUpdateMedia()) {
|
||||
if (checkEntitiesAndViewsUpdate(m.c_message())) {
|
||||
update = false;
|
||||
existing->setIsLocalUpdateMedia(false);
|
||||
}
|
||||
}
|
||||
if (update) {
|
||||
existing->applyEdition(message);
|
||||
checkEntitiesAndViewsUpdate(m.c_message());
|
||||
}
|
||||
existing->applyEdition(message);
|
||||
existing->setIsLocalUpdateMedia(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user