SEATTLE — People have a right to privacy in the text messages they send from their phones, even if they can’t know for sure who might be reading them after they’re delivered, Washington’s Supreme Court held in two related cases Thursday.In separate 5-4 opinions, the justices overturned two Cowlitz County heroin convictions in cases that hinged on text messages a detective read on someone else’s phone.“People have an expectation of privacy in their text messages,” said Hanni Fakhoury, a lawyer with the San Francisco-based Electronic Frontier Foundation, which filed friend-of-the-court briefs in the cases. “People have a right to have those messages delivered without fear of government intrusion or interception, and if the government wants to intrude or intercept them, they have to get a warrant or a wiretap to do so.”The cases arose from the arrest of Daniel Lee in Longview in 2009. After obtaining Lee’s cellphone, a detective started going through the text messages on it without a warrant. He found drug-related messages from Jonathan Roden, then responded, set up a drug deal and arrested Roden for attempted heroin possession. The detective also noticed texts coming in from Shawn Daniel Hinton and similarly arrested him.Writing for the majority in both cases, Justice Steven Gonzalez said the men had an expectation of privacy in the content of their text messages, just as they would have if they sent a sealed letter or made a phone call, and that Washington state residents have an expectation that their text messages won’t be read by police without a warrant.