2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Track shared media index better.

Fixes #25667.
This commit is contained in:
John Preston
2023-01-09 11:48:33 +04:00
parent 9b74958fab
commit fd47fd4d9e
4 changed files with 27 additions and 6 deletions

View File

@@ -148,6 +148,7 @@ void EditMessageWithUploadedMedia(
MTPInputMedia media) {
const auto done = [=](Fn<void()> applyUpdates) {
if (item) {
item->removeFromSharedMediaIndex();
item->clearSavedMedia();
item->setIsLocalUpdateMedia(true);
applyUpdates();