mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-20 18:28:11 +00:00
parent
0718520f36
commit
aba6cc2c64
@ -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>(
|
||||
|
@ -64,10 +64,10 @@ private:
|
||||
|
||||
class LocalFileSource : public Source {
|
||||
public:
|
||||
LocalFileSource(
|
||||
explicit LocalFileSource(
|
||||
const QString &path,
|
||||
const QByteArray &content,
|
||||
const QByteArray &format,
|
||||
const QByteArray &content = QByteArray(),
|
||||
const QByteArray &format = QByteArray(),
|
||||
QImage &&data = QImage());
|
||||
|
||||
void load(
|
||||
|
Loading…
Reference in New Issue
Block a user