Handle video call push notifications.

GitOrigin-RevId: 680b4961aacd1714b0aa8d3ba60b04d7f5e6fea6
This commit is contained in:
levlam 2020-08-06 21:29:40 +03:00
parent 008fc6e101
commit 62c08e7f0a

View File

@ -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");
}