This commit is contained in:
Andrea Cavalli 2021-04-03 14:52:16 +02:00
parent 9c67d7a6b7
commit 4a8d8a3ffb
2 changed files with 3 additions and 2 deletions

View File

@ -402,13 +402,13 @@ Variant<PhotoSize, string> get_photo_size(FileManager *file_manager, PhotoSizeSo
LOG(ERROR) << "Receive unexpected JPEG minithumbnail in photo of format " << format;
}
if (G()->shared_config().get_option_boolean("disable_minithumbnails")) {
return "";
return std::string("");
} else {
return std::move(res);
}
}
if (G()->shared_config().get_option_boolean("disable_minithumbnails")) {
return "";
return std::string("");
} else {
return size->bytes_.as_slice().str();
}

View File

@ -9,6 +9,7 @@
#include "td/telegram/secret_api.h"
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"
#include "td/telegram/ConfigShared.h"
#include "td/telegram/files/FileManager.h"
#include "td/telegram/Td.h"