diff --git a/file-transfer.cpp b/file-transfer.cpp index 0b9c8ea..b9a7178 100644 --- a/file-transfer.cpp +++ b/file-transfer.cpp @@ -389,9 +389,10 @@ std::string getDownloadPath(const td::td_api::object_ptr &do purple_debug_warning(config::pluginId, "File not completely downloaded\n"); else return file.local_->path_; - } else - purple_debug_warning(config::pluginId, "Error downloading file: %s\n", - getDisplayedError(downloadResponse)); + } else { + std::string message = getDisplayedError(downloadResponse); + purple_debug_warning(config::pluginId, "Error downloading file: %s\n", message.c_str()); + } return ""; } diff --git a/sticker.h b/sticker.h index b891516..07ee541 100644 --- a/sticker.h +++ b/sticker.h @@ -21,8 +21,8 @@ public: const ChatId chatId; StickerConversionThread(PurpleAccount *purpleAccount, const std::string &filename, ChatId chatId, TgMessageInfo &&message) - : AccountThread(purpleAccount), inputFileName(filename), chatId(chatId), - m_message(std::move(message)) {} + : AccountThread(purpleAccount), m_message(std::move(message)), inputFileName(filename), + chatId(chatId) {} StickerConversionThread(PurpleAccount *purpleAccount, const std::string &filename, ChatId chatId, const TgMessageInfo *message) : AccountThread(purpleAccount), inputFileName(filename), chatId(chatId)