diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 6784ba987..65c3337c8 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -28615,7 +28615,7 @@ void MessagesManager::on_imported_message_attachments_uploaded(int64 random_id, td_->create_handler(std::move(promise))->send(dialog_id, pending_message_import->import_id); } -bool MessagesManager::on_update_message_id(int64 random_id, MessageId new_message_id, const string &source) { +bool MessagesManager::on_update_message_id(int64 random_id, MessageId new_message_id, const char *source) { if (!new_message_id.is_valid() && !new_message_id.is_valid_scheduled()) { LOG(ERROR) << "Receive " << new_message_id << " in updateMessageId with random_id " << random_id << " from " << source; diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index 06fbeaa67..04c8c502e 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -262,7 +262,7 @@ class MessagesManager final : public Actor { void on_get_common_dialogs(UserId user_id, int64 offset_chat_id, vector> &&chats, int32 total_count); - bool on_update_message_id(int64 random_id, MessageId new_message_id, const string &source); + bool on_update_message_id(int64 random_id, MessageId new_message_id, const char *source); void on_update_dialog_draft_message(DialogId dialog_id, MessageId top_thread_message_id, tl_object_ptr &&draft_message);