         (?reply-fn {:braid/error :not-allowed}))))
 
 (defmethod event-msg-handler :chat/invitation-accept
-  [{:as ev-msg :keys [event id ?data ring-req ?reply-fn send-fn user-id]}]
+  [{:as ev-msg :keys [?data user-id]}]
   (if-let [invite (db/invite-by-id (?data :id))]
     (do
       (db/user-add-to-group! user-id (invite :group-id))

                              [:group/new-admin [group-id new-admin-id]]))))

(defmethod event-msg-handler :chat/remove-from-group
  [{:as ev-msg :keys [event id ?data ring-req ?reply-fn send-fn user-id]}]
  (let [{group-id :group-id to-remove-id :user-id} ?data]
    (when (and group-id to-remove-id
            (or (= to-remove-id user-id)

  :stop (router))

(defmethod event-msg-handler :default
  [{:as ev-msg :keys [event id ?data ring-req ?reply-fn send-fn user-id]}]
  (let [session (:session ring-req)
        uid     (:uid     session)]
    (debugf "Unhandled event: %s" event)
