The men of Nineveh repented.
When Jesus said this, he was talking about himself.
The rebuke Jesus wanted them to understand was “but you have not repented.”