Skip to content

Commit a986345

Browse files
committed
Expect more service messages with replies.
1 parent 415ff19 commit a986345

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

td/telegram/MessageContent.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8636,8 +8636,11 @@ unique_ptr<MessageContent> get_action_message_content(Td *td, tl_object_ptr<tele
86368636
case telegram_api::messageActionPinMessage::ID:
86378637
case telegram_api::messageActionGameScore::ID:
86388638
case telegram_api::messageActionPaymentSent::ID:
8639+
case telegram_api::messageActionPaymentSentMe::ID:
8640+
case telegram_api::messageActionTopicEdit::ID:
86398641
case telegram_api::messageActionSetChatWallPaper::ID:
86408642
case telegram_api::messageActionGiveawayResults::ID:
8643+
case telegram_api::messageActionRequestedPeerSentMe::ID:
86418644
case telegram_api::messageActionStarGiftUnique::ID:
86428645
case telegram_api::messageActionTodoCompletions::ID:
86438646
case telegram_api::messageActionTodoAppendTasks::ID:
@@ -8793,6 +8796,7 @@ unique_ptr<MessageContent> get_action_message_content(Td *td, tl_object_ptr<tele
87938796
}
87948797
case telegram_api::messageActionPaymentSentMe::ID: {
87958798
auto action = telegram_api::move_object_as<telegram_api::messageActionPaymentSentMe>(action_ptr);
8799+
// ignore replied_message_info
87968800
if (action->total_amount_ <= 0 || !check_currency_amount(action->total_amount_)) {
87978801
LOG(ERROR) << "Receive invalid total amount " << action->total_amount_;
87988802
action->total_amount_ = 0;
@@ -8957,6 +8961,7 @@ unique_ptr<MessageContent> get_action_message_content(Td *td, tl_object_ptr<tele
89578961
auto edit_icon_custom_emoji_id = (action->flags_ & telegram_api::messageActionTopicEdit::ICON_EMOJI_ID_MASK) != 0;
89588962
auto edit_is_closed = (action->flags_ & telegram_api::messageActionTopicEdit::CLOSED_MASK) != 0;
89598963
auto edit_is_hidden = (action->flags_ & telegram_api::messageActionTopicEdit::HIDDEN_MASK) != 0;
8964+
// ignore replied_message_info
89608965
return td::make_unique<MessageTopicEdit>(
89618966
ForumTopicEditedData{std::move(action->title_), edit_icon_custom_emoji_id, action->icon_emoji_id_,
89628967
edit_is_closed, action->closed_, edit_is_hidden, action->hidden_});
@@ -9046,6 +9051,7 @@ unique_ptr<MessageContent> get_action_message_content(Td *td, tl_object_ptr<tele
90469051
}
90479052
case telegram_api::messageActionRequestedPeerSentMe::ID: {
90489053
auto action = telegram_api::move_object_as<telegram_api::messageActionRequestedPeerSentMe>(action_ptr);
9054+
// ignore replied_message_info
90499055
vector<SharedDialog> shared_dialogs;
90509056
for (auto &peer : action->peers_) {
90519057
SharedDialog shared_dialog(td, std::move(peer));

0 commit comments

Comments
 (0)