Update DocumentsManager.hpp and NotificationManager.cpp

This commit is contained in:
Andrea Cavalli 2020-04-27 23:09:14 +02:00
parent 3e945e7728
commit 0b1274c3fa
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@
#include "td/utils/logging.h"
#include "td/utils/tl_helpers.h"
#include "td/telegram/ConfigShared.h"
namespace td {
template <class StorerT>

View File

@ -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();