From 499d4eaf54569d2411ab5d1c2ad0de8dbcc0f472 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 23 Nov 2023 08:31:56 +0300 Subject: [PATCH] Minor improvements. --- td/generate/scheme/td_api.tl | 4 ++-- td/telegram/MessagesManager.cpp | 2 +- td/telegram/net/SessionMultiProxy.cpp | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index f91e8de0c..e421ecff5 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -2632,7 +2632,7 @@ inputPassportElementError type:PassportElementType message:string source:InputPa //@description A text message //@text Text of the message //@web_page A link preview attached to the message; may be null -//@link_preview_options Options which was used for generation of the link preview; may be null if default options were used +//@link_preview_options Options which were used for generation of the link preview; may be null if default options were used messageText text:formattedText web_page:webPage link_preview_options:linkPreviewOptions = MessageContent; //@description An animation message (GIF-style). @@ -6165,7 +6165,7 @@ updateNotification notification_group_id:int32 notification:notification = Updat //@removed_notification_ids Identifiers of removed group notifications, sorted by notification identifier updateNotificationGroup notification_group_id:int32 type:NotificationGroupType chat_id:int53 notification_settings_chat_id:int53 notification_sound_id:int64 total_count:int32 added_notifications:vector removed_notification_ids:vector = Update; -//@description Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update @groups Lists of active notification groups +//@description Contains active notifications that were shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update @groups Lists of active notification groups updateActiveNotifications groups:vector = Update; //@description Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 25ba3a43f..e0b96e7e4 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -28921,7 +28921,7 @@ bool MessagesManager::on_get_message_error(DialogId dialog_id, MessageId message const char *source) { if (status.message() == "MSG_ID_INVALID" || status.message() == "MESSAGE_ID_INVALID" || status.message() == "DATA_INVALID") { - td_->messages_manager_->get_message_from_server({dialog_id, message_id}, Promise(), source); + get_message_from_server({dialog_id, message_id}, Promise(), source); return true; } return on_get_dialog_error(dialog_id, status, source); diff --git a/td/telegram/net/SessionMultiProxy.cpp b/td/telegram/net/SessionMultiProxy.cpp index 0251e472e..d938c917f 100644 --- a/td/telegram/net/SessionMultiProxy.cpp +++ b/td/telegram/net/SessionMultiProxy.cpp @@ -11,6 +11,7 @@ #include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" +#include "td/utils/misc.h" #include "td/utils/Slice.h" #include "td/utils/SliceBuilder.h"