aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/NotificationType.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2019-03-20 05:57:36 +0300
committerlevlam <levlam@telegram.org>2019-03-20 05:57:36 +0300
commitc09d5dfbc22f0955403292a18964d51f1de052f4 (patch)
tree2e8dc756b8007e271d67f38dc6a102bb4734cc75 /td/telegram/NotificationType.h
parentf8162c04e260197ca861359373d0483c928f3c1f (diff)
Add logging for a CHECK.
GitOrigin-RevId: dadde241811ab890935ba24c7b3af937393d1185
Diffstat (limited to 'td/telegram/NotificationType.h')
-rw-r--r--td/telegram/NotificationType.h7
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> &notification_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();