If we behave badly, we need to take responsibility and apologize for that, and make an effort in the future to not repeat that bad behavior. It doesn't matter if we were provoked and triggered by somebody else's bad behavior, we still need to apologize and make amends.