added code to handle incoming PublicMessageRequest