diff options
| author | levlam <levlam@telegram.org> | 2019-03-20 05:57:36 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2019-03-20 05:57:36 +0300 |
| commit | c09d5dfbc22f0955403292a18964d51f1de052f4 (patch) | |
| tree | 2e8dc756b8007e271d67f38dc6a102bb4734cc75 /td/telegram/NotificationType.h | |
| parent | f8162c04e260197ca861359373d0483c928f3c1f (diff) | |
Add logging for a CHECK.
GitOrigin-RevId: dadde241811ab890935ba24c7b3af937393d1185
Diffstat (limited to 'td/telegram/NotificationType.h')
| -rw-r--r-- | td/telegram/NotificationType.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/td/telegram/NotificationType.h b/td/telegram/NotificationType.h index ace632309..9a62e31e3 100644 --- a/td/telegram/NotificationType.h +++ b/td/telegram/NotificationType.h @@ -46,6 +46,13 @@ inline StringBuilder &operator<<(StringBuilder &string_builder, const Notificati return notification_type.to_string_builder(string_builder); } +inline StringBuilder &operator<<(StringBuilder &string_builder, const unique_ptr<NotificationType> ¬ification_type) { + if (notification_type == nullptr) { + return string_builder << "null"; + } + return string_builder << *notification_type; +} + unique_ptr<NotificationType> create_new_message_notification(MessageId message_id); unique_ptr<NotificationType> create_new_secret_chat_notification(); |
