mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Use empty Storage::Cache::Key as nullopt.
This commit is contained in:
@@ -155,7 +155,7 @@ void PhotoData::collectLocalData(not_null<PhotoData*> local) {
|
||||
const auto copyImage = [&](const ImagePtr &src, const ImagePtr &dst) {
|
||||
if (const auto from = src->cacheKey()) {
|
||||
if (const auto to = dst->cacheKey()) {
|
||||
_owner->cache().copyIfEmpty(*from, *to);
|
||||
_owner->cache().copyIfEmpty(from, to);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user