From 62c08e7f0a3d9060fb9e84e4d219776038886fff Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 6 Aug 2020 21:29:40 +0300 Subject: [PATCH] Handle video call push notifications. GitOrigin-RevId: 680b4961aacd1714b0aa8d3ba60b04d7f5e6fea6 --- td/telegram/NotificationManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 6d3396b7c..903ae1699 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -3180,8 +3180,8 @@ Status NotificationManager::process_push_notification_payload(string payload, bo return Status::Error(406, "New secret chat notification is not supported"); } - if (begins_with(loc_key, "PHONE_CALL_")) { - // TODO PHONE_CALL_REQUEST/PHONE_CALL_DECLINE/PHONE_CALL_MISSED notification + if (begins_with(loc_key, "PHONE_CALL_") || begins_with(loc_key, "VIDEO_CALL_")) { + // TODO PHONE_CALL_REQUEST/PHONE_CALL_DECLINE/PHONE_CALL_MISSED/VIDEO_CALL_REQUEST/VIDEO_CALL_MISSED notifications return Status::Error(406, "Phone call notification is not supported"); }