Gamma ray constraints on decaying dark matter