                                                       (when (= i highlighted-result-index) "highlight"))
                                       :style #js {:cursor "pointer"}
                                       :onClick (fn []
-                                                 ((result :action) (config :thread-id))
-                                                 (close-autocomplete!))}
+                                                 (choose-result! result))}
                           ((result :html))))
                       results))
                   (dom/div #js {:className "result"}

              (om/set-state! owner :text ""))
            close-autocomplete!
            (fn []
              (clear-tags!)
              (highlight-clear!))
            autocomplete-open? (not (nil? results))]
          (dom/div #js {:className "message new"}
            (dom/textarea #js {:placeholder (config :placeholder)
                               :value (state :text)
                               :onChange (fn [e]
                                           (om/set-state! owner :text (.. e -target -value)))
                               :onKeyDown
                               (fn [e]
                                 (condp = e.keyCode

                                     (do
                                       (.preventDefault e)
                                       (when-let [result (nth results highlighted-result-index nil)]
                                         (choose-result! result)))
                                     ; ENTER otherwise -> send message
                                     (not e.shiftKey)
                                     (do
