Minor fixes.

GitOrigin-RevId: 8fdf69db2ee8131aad5a40f5755fc7761f97a633
This commit is contained in:
levlam 2019-03-29 14:32:50 +03:00
parent 715783e5bd
commit 521227a2f6
2 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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 <functional>
#include <unordered_map>