From 0b1274c3fa1de8d38275aed0e3ab1248ae631e68 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Mon, 27 Apr 2020 23:09:14 +0200 Subject: [PATCH] Update DocumentsManager.hpp and NotificationManager.cpp --- td/telegram/DocumentsManager.hpp | 2 ++ td/telegram/NotificationManager.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/td/telegram/DocumentsManager.hpp b/td/telegram/DocumentsManager.hpp index 7a91c26b..befddf35 100644 --- a/td/telegram/DocumentsManager.hpp +++ b/td/telegram/DocumentsManager.hpp @@ -15,6 +15,8 @@ #include "td/utils/logging.h" #include "td/utils/tl_helpers.h" +#include "td/telegram/ConfigShared.h" + namespace td { template diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index cd3bd04f..5e4b843e 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -164,7 +164,7 @@ void NotificationManager::on_flush_pending_updates_timeout_callback(void *notifi } bool NotificationManager::is_disabled() const { - if ( G()->shared_config().get_option_boolean("disable_notifications") { + if ( G()->shared_config().get_option_boolean("disable_notifications")) { return true; } else { return !td_->auth_manager_->is_authorized() || td_->auth_manager_->is_bot() || G()->close_flag();