Ignore MessageReplyInfo with channel_id == 777.
This commit is contained in:
parent
95d60959b1
commit
f15093deb3
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user