[sr-dev] git:master:76b40abd: presence: check if all related dialog states are terminated