mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Write uint8 tags to Database and count stats.
Also pass rvalues to Database where copies are required anyway.
This commit is contained in:
@@ -1022,7 +1022,9 @@ void RemoteImage::setImageBytes(
|
||||
|
||||
const auto location = this->location();
|
||||
if (!location.isNull() && !bytes.isEmpty()) {
|
||||
Auth().data().cache().putIfEmpty(Data::StorageCacheKey(location), bytes);
|
||||
Auth().data().cache().putIfEmpty(
|
||||
Data::StorageCacheKey(location),
|
||||
base::duplicate(bytes));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user