Ignore MessageReplyInfo with channel_id == 777.

This commit is contained in:
levlam 2021-09-24 12:31:27 +03:00
parent 95d60959b1
commit f15093deb3
2 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,7 @@
namespace td {
MessageReplyInfo::MessageReplyInfo(tl_object_ptr<telegram_api::messageReplies> &&reply_info, bool is_bot) {
if (reply_info == nullptr || is_bot) {
if (reply_info == nullptr || is_bot || reply_info->channel_id_ == 777) {
return;
}
if (reply_info->replies_ < 0) {

View File

@ -118,6 +118,9 @@ struct MessageReplyInfo {
if (has_last_read_outbox_message_id) {
td::parse(last_read_outbox_message_id, parser);
}
if (channel_id.get() == 777) {
*this = MessageReplyInfo();
}
}
};