From 521227a2f69ca42aed6d2887bba544ba5a24cc0b Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 29 Mar 2019 14:32:50 +0300 Subject: [PATCH] Minor fixes. GitOrigin-RevId: 8fdf69db2ee8131aad5a40f5755fc7761f97a633 --- td/telegram/NotificationManager.cpp | 8 +++++--- td/telegram/files/FileStatsWorker.cpp | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/td/telegram/NotificationManager.cpp b/td/telegram/NotificationManager.cpp index f96055960..acfc52c7a 100644 --- a/td/telegram/NotificationManager.cpp +++ b/td/telegram/NotificationManager.cpp @@ -7,6 +7,8 @@ #include "td/telegram/NotificationManager.h" #include "td/telegram/AuthManager.h" +#include "td/telegram/ChatId.h" +#include "td/telegram/ChannelId.h" #include "td/telegram/ConfigShared.h" #include "td/telegram/ContactsManager.h" #include "td/telegram/DeviceTokenManager.h" @@ -16,6 +18,7 @@ #include "td/telegram/misc.h" #include "td/telegram/net/ConnectionCreator.h" #include "td/telegram/net/DcId.h" +#include "td/telegram/SecretChatId.h" #include "td/telegram/StateManager.h" #include "td/telegram/Td.h" #include "td/telegram/TdDb.h" @@ -2758,9 +2761,8 @@ Status NotificationManager::process_push_notification_payload(string payload) { if (dialog_id.get_type() == DialogType::User) { sender_name = std::move(loc_args[0]); } - loc_args.erase( - loc_args - .begin()); // chat title for CHAT_*, CHANNEL_*, ENCRYPTED_MESSAGE and PINNED_*, sender name for MESSAGE_* and CONTACT_JOINED + // chat title for CHAT_*, CHANNEL_*, ENCRYPTED_MESSAGE and PINNED_*, sender name for MESSAGE_* and CONTACT_JOINED + loc_args.erase(loc_args.begin()); return process_message_push_notification(dialog_id, MessageId(server_message_id), random_id, sender_user_id, std::move(sender_name), sent_date, contains_mention, is_silent, diff --git a/td/telegram/files/FileStatsWorker.cpp b/td/telegram/files/FileStatsWorker.cpp index 94d955a13..01cfb99f7 100644 --- a/td/telegram/files/FileStatsWorker.cpp +++ b/td/telegram/files/FileStatsWorker.cpp @@ -26,7 +26,7 @@ #include "td/utils/Slice.h" #include "td/utils/Status.h" #include "td/utils/Time.h" -#include "td/utils/tl_helpers.h" +#include "td/utils/tl_parsers.h" #include #include