diff --git a/td/telegram/Photo.cpp b/td/telegram/Photo.cpp index 4001e2330..090af902a 100644 --- a/td/telegram/Photo.cpp +++ b/td/telegram/Photo.cpp @@ -402,13 +402,13 @@ Variant 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(); } diff --git a/td/telegram/VideosManager.cpp b/td/telegram/VideosManager.cpp index c78049c85..640e54b91 100644 --- a/td/telegram/VideosManager.cpp +++ b/td/telegram/VideosManager.cpp @@ -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"