mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
@@ -1069,14 +1069,11 @@ void DocumentData::checkSticker() {
|
||||
const auto &loc = location(true);
|
||||
if (loc.accessEnable()) {
|
||||
data->image = std::make_unique<Image>(
|
||||
std::make_unique<Images::LocalFileSource>(
|
||||
loc.name(),
|
||||
QByteArray(),
|
||||
"WEBP"));
|
||||
std::make_unique<Images::LocalFileSource>(loc.name()));
|
||||
loc.accessDisable();
|
||||
}
|
||||
} else {
|
||||
auto format = QByteArray("WEBP");
|
||||
auto format = QByteArray();
|
||||
auto image = App::readImage(_data, &format, false);
|
||||
data->image = std::make_unique<Image>(
|
||||
std::make_unique<Images::LocalFileSource>(
|
||||
|
Reference in New Issue
Block a user