[sr-dev] git:master:6d0f8994: presence: test if event is dialog to avoid unnecessary xml parsing