Add comment on calling set_dialog_reply_markup in on_get_message instead of add_message_to_dialog.

GitOrigin-RevId: e932db6bc5078baed759a6c7af6b2c72749db25a
This commit is contained in:
levlam 2019-11-30 17:15:46 +03:00
parent 40d13deeaa
commit fc6f1fc5f4

View File

@ -10970,6 +10970,7 @@ FullMessageId MessagesManager::on_get_message(MessageInfo &&message_info, bool f
send_update_chat_last_message(d, "on_get_message");
}
// set dialog reply markup only after updateNewMessage and updateChatLastMessage are sent
if (need_update && m->reply_markup != nullptr && !m->message_id.is_scheduled() &&
m->reply_markup->type != ReplyMarkup::Type::InlineKeyboard && m->reply_markup->is_personal &&
!td_->auth_manager_->is_bot()) {