Fix setting last_new_message_id.

GitOrigin-RevId: 69565843b6db635dffaa6e407ac406982abac967
This commit is contained in:
levlam 2019-06-02 01:19:05 +03:00
parent 06f1aa9e26
commit e164355af3

View File

@ -24997,7 +24997,7 @@ void MessagesManager::on_get_channel_dialog(DialogId dialog_id, MessageId last_m
LOG(ERROR) << added_full_message_id << " doesn't became last new message";
dump_debug_message_op(d, 2);
}
} else {
} else if (last_message_id.get() > d->last_new_message_id.get()) {
set_dialog_last_new_message_id(d, last_message_id,
"on_get_channel_dialog 40"); // skip updates about some messages
}