A former police office in Dallas had been sexting with her partner moments before she mistakenly entered a neighbor’s apartment and shot him dead, prosecutors said Tuesday.

Amber Guyger faces murder charges after killing 26-year-old Botham Jean on Sept. 6, 2018.

Prosecutors said in the first day of her trial that Guyger missed clear signs she was going into the wrong apartment, including a bright red doormat outside Jean’s door. They say she was distracted by sexting, KDFW-TV reports.

Lead prosecutor Jason Hermus told the jury that Guyger had been texting her former partner and lover Martin Rivera.

TRENDING: HERE SHE COMES! Judge Amy Coney Barrett Seen Leaving Her House with Her Seven Kids and Husband! -- Announcement at 5 PM ET

“Super horny today too,” she texted, prosecutors said.

“Me too,” he sent back.

After she finished a nearly 14-hour shift at 9:30 p.m., she sent a Snapchat message that said, “Wanna touch?” NBC News reports.

The two then talked on the phone together for 16 minutes as Guyger headed to her apartment. The call ended at 9:55 p.m. just minutes before the shooting, according to The Dallas Morning News.

At 10:02 p.m., Hermus said she texted her partner “I need you. Hurry.” A minute later she sent another text that said, “I f—ed up.”

Both the prosecution nor the defense agree that just before 10 p.m., Guyger parked on the wrong floor of her apartment complex and walked to Jean’s apartment, mistaking it for her own. After the shooting, she told police she thought he was an intruder.

“In the last 10 minutes of Bo’s life, Amber Guyger made a series of unreasonable errors and unreasonable decisions and unreasonable choices,” Hermus told the jury, according to KDFW.