diff options
| author | levlam <levlam@telegram.org> | 2026-05-20 21:28:31 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-05-20 21:28:31 +0300 |
| commit | 0160f50b5d5d2ff1e68f319410a2e92a54220ac6 (patch) | |
| tree | 5719e5463b343132f453ce48271b488f09f8de03 /td/telegram/NotificationManager.cpp | |
| parent | abc964ddebcf3dc41a2229197718d2948837cd98 (diff) | |
Improve Document::is_empty() name.
Diffstat (limited to 'td/telegram/NotificationManager.cpp')
| -rw-r--r-- | td/telegram/NotificationManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index c037d9ede..32df4faf4 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -2994,7 +2994,7 @@ Status NotificationManager::parse_push_notification_attach(DialogId dialog_id, s attached_document = td_->documents_manager_->on_get_document(telegram_api::move_object_as<telegram_api::document>(result), dialog_id, false, ends_with(loc_key, "MESSAGE_LIVE_PHOTO")); - if (!attached_document.empty()) { + if (!attached_document.is_empty()) { if (ends_with(loc_key, "_NOTE")) { loc_key.resize(loc_key.rfind('_')); } @@ -3576,7 +3576,7 @@ class NotificationManager::AddMessagePushNotificationLogEvent { bool has_sender_name = !sender_name_.empty(); bool has_arg = !arg_.empty(); bool has_photo = !photo_.is_empty(); - bool has_document = !document_.empty(); + bool has_document = !document_.is_empty(); bool has_sender_dialog_id = sender_dialog_id_.is_valid(); bool has_ringtone_id = !disable_notification_ && ringtone_id_ != -1; BEGIN_STORE_FLAGS(); @@ -3813,7 +3813,7 @@ class NotificationManager::EditMessagePushNotificationLogEvent { bool has_message_id = message_id_.is_valid(); bool has_arg = !arg_.empty(); bool has_photo = !photo_.is_empty(); - bool has_document = !document_.empty(); + bool has_document = !document_.is_empty(); BEGIN_STORE_FLAGS(); STORE_FLAG(has_message_id); STORE_FLAG(has_arg); |
