Britain’s Prince Harry has sharply attacked the failure of social media companies to challenge hate online, revealing that he warned the chief executive of Twitter ahead of the Jan. 6 Capitol riots that the site was being used to stage political unrest.

Harry made the comments Tuesday in an online panel on misinformation in California. He said he made his concerns known via email to Twitter CEO Jack Dorsey the day before the riot in Washington.