mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Clear directly-deleted local photos from cache.
This commit is contained in:
@@ -3177,7 +3177,7 @@ void SessionController::cancelUploadLayer(not_null<HistoryItem*> item) {
|
||||
if (const auto item = data.message(itemId)) {
|
||||
if (!item->isEditingMedia()) {
|
||||
const auto history = item->history();
|
||||
item->destroy();
|
||||
data.destroyMessageWithCacheCleanup(item);
|
||||
history->requestChatListMessage();
|
||||
} else {
|
||||
item->returnSavedMedia();
|
||||
|
||||
Reference in New Issue
Block a user