From bf9c4e1e5eaa5ba21bdb17a5f8a5dd42c96f7ea6 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Mon, 7 Dec 2020 23:33:09 +0100 Subject: [PATCH] TDLib 1.7: Message database seems to lead to terrible performance -> disable it --- src/tdlibwrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tdlibwrapper.cpp b/src/tdlibwrapper.cpp index 8128178..c0444fb 100644 --- a/src/tdlibwrapper.cpp +++ b/src/tdlibwrapper.cpp @@ -1283,7 +1283,7 @@ void TDLibWrapper::setInitialParameters() initialParameters.insert("database_directory", QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "/tdlib"); initialParameters.insert("use_file_database", true); initialParameters.insert("use_chat_info_database", true); - initialParameters.insert("use_message_database", true); + initialParameters.insert("use_message_database", false); initialParameters.insert("use_secret_chats", true); initialParameters.insert("system_language_code", QLocale::system().name()); QSettings hardwareSettings("/etc/hw-release", QSettings::NativeFormat);