Merge remote-tracking branch 'origin/tdlib17' into searching

This commit is contained in:
Sebastian Wolf 2020-12-16 23:55:58 +01:00
commit 87255e123a
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -120,7 +120,7 @@ TDLibReceiver::TDLibReceiver(void *tdLibClient, QObject *parent) : QThread(paren
handlers.insert("updateBasicGroupFullInfo", &TDLibReceiver::processUpdateBasicGroupFullInfo);
handlers.insert("supergroupFullInfo", &TDLibReceiver::processSupergroupFullInfo);
handlers.insert("updateSupergroupFullInfo", &TDLibReceiver::processUpdateSupergroupFullInfo);
handlers.insert("userProfilePhotos", &TDLibReceiver::processUserProfilePhotos);
handlers.insert("chatPhotos", &TDLibReceiver::processUserProfilePhotos);
handlers.insert("updateChatPermissions", &TDLibReceiver::processUpdateChatPermissions);
handlers.insert("updateChatPhoto", &TDLibReceiver::processUpdateChatPhoto);
handlers.insert("updateChatTitle", &TDLibReceiver::processUpdateChatTitle);
@ -146,7 +146,7 @@ void TDLibReceiver::setActive(bool active)
void TDLibReceiver::receiverLoop()
{
LOG("Starting receiver loop");
const double WAIT_TIMEOUT = 1.0;
const double WAIT_TIMEOUT = 5.0;
while (this->isActive) {
const char *result = td_json_client_receive(this->tdLibClient, WAIT_TIMEOUT);
if (result) {