relay: add events for private message being opened and optionally for being closed