The case against a Dallas-area junior high teacher has been dropped after an appeals court found that some level of sexting between a teacher and student is allowed.

Teen Suspended for One Year After Hugging Teacher

Sean Williams, a 31-year-old Everman ISD middle school teacher, was arrested in 2012 after he was found to have sent sexually-related text messages to a 13-year-old student.

In a separate case, a Texas appeals court ruled that sexting conversations can be protected under the First Amendment, leading authorities not to pursue criminal charges against Williams.

Police: Substitute Teacher Showed Up Drunk to School

"You can talk trash, you can talk disgusting things, but if you're not soliciting someone to meet you or engage in an act, then it's protected by the First Amendment," said defense attorney Jim Shaw, who also conceded that the current law is "morally wrong."

The new development could lead lawmakers to craft a new law.

Teacher Fired for Watching Porn at School Gets Job Back Thanks to Union

Watch the report above from Fox and Friends First and read more via FOX affiliate KDFW.