Update DocumentsManager.hpp and NotificationManager.cpp
This commit is contained in:
parent
3e945e7728
commit
0b1274c3fa
@ -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>
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user