diff options
| author | levlam <levlam@telegram.org> | 2025-04-29 14:34:09 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-04-29 14:34:09 +0300 |
| commit | 26c44c264dfa4053fde28343ef41694dc447ee80 (patch) | |
| tree | 15f4fe1bac2d14f1b961f143394202a328798421 /td/telegram/NotificationManager.cpp | |
| parent | 93700cdceeeb4aaccced13bc92fd19a42aa62ed6 (diff) | |
Explicitly ignore CONF_CALL/CONF_VIDEOCALL notifications.
Diffstat (limited to 'td/telegram/NotificationManager.cpp')
| -rw-r--r-- | td/telegram/NotificationManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index 47517efaf..74ce8a7b6 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -3351,6 +3351,11 @@ Status NotificationManager::process_push_notification_payload(string payload, bo return Status::Error(406, "Phone call notification is not supported"); } + if (begins_with(loc_key, "CONF_CALL_") || begins_with(loc_key, "CONF_VIDEOCALL_")) { + // TODO CONF_CALL_REQUEST/CONF_CALL_MISSED/CONF_VIDEOCALL_REQUEST/CONF_VIDEOCALL_MISSED notifications + return Status::Error(406, "Group call notification is not supported"); + } + if (begins_with(loc_key, "REACT_") || loc_key == "READ_REACTION") { // TODO REACT_* notifications return Status::Error(406, "Reaction notifications are unsupported"); |
