From b0b25b53b09d72fa93c5ba5cca458e84c4889fcd Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 23 Sep 2021 17:40:40 +0300 Subject: [PATCH] Fix sender_dialog_id in channel push notifications. --- td/telegram/NotificationManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index d91c546b1..8b2492642 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -3167,6 +3167,8 @@ Status NotificationManager::process_push_notification_payload(string payload, bo } } else if (dialog_id.get_type() == DialogType::User) { sender_user_id = dialog_id.get_user_id(); + } else if (dialog_id.get_type() == DialogType::Channel) { + sender_dialog_id = dialog_id; } TRY_RESULT(contains_mention_int, get_json_object_int_field(custom, "mention"));