After facing backlash for turning over private chats to police investigating an alleged illegal abortion, Facebook is testing a new privacy feature in its Messenger app.

End-to-end encryption will be tested as the default setting in Messenger chats. The only people who can see the contents of a message are those who are chatting.

The company was in hot water with some privacy advocates. The social media giant gave Nebraska police access to Messenger chats between a teenager and her mother, according to court documents. According to prosecutors, they talked about an abortion that would be against the law.

The teen and her mother have denied the charges.

Meta said they received legal warrants from Nebraska police before the Supreme Court voted to overturn abortion rights.

Meta didn't reply to the request for comment.

End-to-end encryption is available for Messenger. If the privacy measures had been the default setting, Facebook wouldn't have been able to see messages between the Nebraska teen and her mother.