TDLib 1.7: Some 'fun' with the message database

This commit is contained in:
Sebastian Wolf 2020-12-08 21:57:23 +01:00
parent 0d21174220
commit a1f0e1c1c5
2 changed files with 3 additions and 3 deletions

View file

@ -146,7 +146,7 @@ void TDLibReceiver::setActive(bool active)
void TDLibReceiver::receiverLoop()
{
LOG("Starting receiver loop");
const double WAIT_TIMEOUT = 5.0;
const double WAIT_TIMEOUT = 1.0;
while (this->isActive) {
const char *result = td_json_client_receive(this->tdLibClient, WAIT_TIMEOUT);
if (result) {

View file

@ -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", false);
initialParameters.insert("use_message_database", true);
initialParameters.insert("use_secret_chats", true);
initialParameters.insert("system_language_code", QLocale::system().name());
QSettings hardwareSettings("/etc/hw-release", QSettings::NativeFormat);
@ -1311,7 +1311,7 @@ void TDLibWrapper::setLogVerbosityLevel()
LOG("Setting log verbosity level to something less chatty");
QVariantMap requestObject;
requestObject.insert(_TYPE, "setLogVerbosityLevel");
requestObject.insert("new_verbosity_level", 2);
requestObject.insert("new_verbosity_level", 5);
this->sendRequest(requestObject);
}