mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Don't unload all media on switching between chats.
This commit is contained in:
@@ -279,13 +279,12 @@ bool Result::onChoose(Layout::ItemBase *layout) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void Result::forget() {
|
||||
_thumb->forget();
|
||||
void Result::unload() {
|
||||
if (_document) {
|
||||
_document->forget();
|
||||
_document->unload();
|
||||
}
|
||||
if (_photo) {
|
||||
_photo->forget();
|
||||
_photo->unload();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user