Lionel Messi was in attendance as Novak Djokovic reached the Miami Open final.