           (fn [mentioned-id]
             (and
               (or (boolean (db/user-in-group? user-id (?data :group-id)))
-                  (do (timbre/warnf "User %s attempted to mention disallowed user %s"
-                                    user-id mentioned-id)
+                  (do (timbre/warnf
+                        "User %s attempted to mention disallowed user %s"
+                        user-id mentioned-id)
                       false))
               (or (boolean (db/user-visible-to-user? user-id mentioned-id))
-                (do (timbre/warnf "User %s attempted to mention disallowed user %s"
-                                  user-id mentioned-id)
+                  (do (timbre/warnf
+                        "User %s attempted to mention disallowed user %s"
+                        user-id mentioned-id)
                     false))))
           (?data :mentioned-user-ids))))))
 

          (when (notify-rules/notify? uid rules new-message)
            (if (online? uid)
              (chsk-send! uid [:chat/notify-message new-message])
              (-> (email/create-message [(db/get-thread (new-message :thread-id))])
                  (assoc :subject "Notification from Braid")
                  (->> (email/send-message (db/user-email uid)))))))))))


(defmethod event-msg-handler :chat/new-message
  [{:as ev-msg :keys [event id ?data ring-req ?reply-fn send-fn]}]

  (let [ids-to-send-to (disj
                         (intersection
                           (set (:any @connected-uids))
                           (into
                             #{} (map :id)
                             (db/with-conn (db/fetch-users-for-user user-id))))
                         user-id)]
    (doseq [uid ids-to-send-to]
      (chsk-send! uid info))))
