Ignore ReadMessageContents updates for bots.
This commit is contained in:
parent
01d7178272
commit
1e65d38483
@ -6808,6 +6808,9 @@ void MessagesManager::on_update_read_channel_messages_contents(
|
||||
LOG(ERROR) << "Receive invalid " << channel_id << " in updateChannelReadMessagesContents";
|
||||
return;
|
||||
}
|
||||
if (td_->auth_manager_->is_bot()) {
|
||||
return;
|
||||
}
|
||||
DialogId dialog_id = DialogId(channel_id);
|
||||
|
||||
Dialog *d = get_dialog_force(dialog_id, "on_update_read_channel_messages_contents");
|
||||
@ -8020,6 +8023,9 @@ void MessagesManager::process_pts_update(tl_object_ptr<telegram_api::Update> &&u
|
||||
break;
|
||||
}
|
||||
case telegram_api::updateReadMessagesContents::ID: {
|
||||
if (td_->auth_manager_->is_bot()) {
|
||||
break;
|
||||
}
|
||||
auto update = move_tl_object_as<telegram_api::updateReadMessagesContents>(update_ptr);
|
||||
LOG(INFO) << "Process updateReadMessageContents";
|
||||
for (auto &message_id : update->messages_) {
|
||||
|
Loading…
Reference in New Issue
Block a user