LinkedIn is facing a class-action lawsuit over allegations of using private messages to train its AI model.