A federal appeals court in California decided that a police officer in the city of Ontario had a right to privacy regarding the texts he sent on his department-issued pager , even though his chief discovered that some of them were sexually explicit messages to his girlfriend .