Silence now possible warning.

GitOrigin-RevId: 1b431d3d20c512239445f388934eba14bd8f9522
This commit is contained in:
levlam 2018-02-10 04:14:27 +03:00
parent 5a80fc5621
commit e3867152e7

View File

@ -21311,7 +21311,8 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
++it; ++it;
auto next_message = *it; auto next_message = *it;
if (next_message != nullptr) { if (next_message != nullptr) {
if (next_message->message_id.is_server()) { if (next_message->message_id.is_server() &&
!(td_->auth_manager_->is_bot() && Slice(source) == Slice("get channel messages"))) {
LOG(ERROR) << "Can't attach " << message_id << " from " << source << " before " << next_message->message_id LOG(ERROR) << "Can't attach " << message_id << " from " << source << " before " << next_message->message_id
<< " and after " << previous_message->message_id << " in " << dialog_id; << " and after " << previous_message->message_id << " in " << dialog_id;
dump_debug_message_op(d); dump_debug_message_op(d);