Improved applying edition.

- Fixed cancel single media.
This commit is contained in:
23rd
2019-03-31 23:45:55 +03:00
committed by John Preston
parent 0e7ce97da7
commit f3102573ea
5 changed files with 15 additions and 11 deletions
+3 -8
View File
@@ -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);
}
});
}