From 0fd3c55547f2b712fd8e53759755d0494e4359f7 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 28 Sep 2023 13:25:33 +0300 Subject: [PATCH] Add addedReaction.is_outgoing. --- td/generate/scheme/td_api.tl | 8 ++++++-- td/telegram/MessageReaction.cpp | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 727f02bf3..76fa86373 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -3599,8 +3599,12 @@ firebaseAuthenticationSettingsIos device_token:string is_app_sandbox:Bool = Fire phoneNumberAuthenticationSettings allow_flash_call:Bool allow_missed_call:Bool is_current_phone_number:Bool allow_sms_retriever_api:Bool firebase_authentication_settings:FirebaseAuthenticationSettings authentication_tokens:vector = PhoneNumberAuthenticationSettings; -//@description Represents a reaction applied to a message @type Type of the reaction @sender_id Identifier of the chat member, applied the reaction @date Point in time (Unix timestamp) when the reaction was added -addedReaction type:ReactionType sender_id:MessageSender date:int32 = AddedReaction; +//@description Represents a reaction applied to a message +//@type Type of the reaction +//@sender_id Identifier of the chat member, applied the reaction +//@is_outgoing True, if the reaction was added by the current user +//@date Point in time (Unix timestamp) when the reaction was added +addedReaction type:ReactionType sender_id:MessageSender is_outgoing:Bool date:int32 = AddedReaction; //@description Represents a list of reactions added to a message @total_count The total number of found reactions @reactions The list of added reactions @next_offset The offset for the next request. If empty, there are no more results addedReactions total_count:int32 reactions:vector next_offset:string = AddedReactions; diff --git a/td/telegram/MessageReaction.cpp b/td/telegram/MessageReaction.cpp index 7dc6b4975..96e424b24 100644 --- a/td/telegram/MessageReaction.cpp +++ b/td/telegram/MessageReaction.cpp @@ -225,8 +225,8 @@ class GetMessageReactionsListQuery final : public Td::ResultHandler { auto message_sender = get_min_message_sender_object(td_, dialog_id, "GetMessageReactionsListQuery"); if (message_sender != nullptr) { - reactions.push_back(td_api::make_object(reaction_type.get_reaction_type_object(), - std::move(message_sender), reaction->date_)); + reactions.push_back(td_api::make_object( + reaction_type.get_reaction_type_object(), std::move(message_sender), reaction->my_, reaction->date_)); } }