mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Don't unload all media on switching between chats.
This commit is contained in:
@@ -2008,18 +2008,6 @@ void Session::insertCheckedServiceNotification(
|
||||
sendHistoryChangeNotifications();
|
||||
}
|
||||
|
||||
void Session::forgetMedia() {
|
||||
for (const auto &[id, photo] : _photos) {
|
||||
photo->forget();
|
||||
}
|
||||
for (const auto &[id, document] : _documents) {
|
||||
document->forget();
|
||||
}
|
||||
for (const auto &[coords, location] : _locations) {
|
||||
location->thumb->forget();
|
||||
}
|
||||
}
|
||||
|
||||
void Session::setMimeForwardIds(MessageIdsList &&list) {
|
||||
_mimeForwardIds = std::move(list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user