                             :title "corgi group"
                             :users [2 3]}]))
 
-(def sidebar-tab-stats (r/atom {:active :friends
+(def sidebar-tab-stats (r/atom {:active :threads
                                 :friends {}
                                 :threads {}}))
 

(defn sidebar-friends-pane [sidebar-stats]
  (r/create-class
    {:component-will-mount (fn [_]
                             (js/console.log "sidebar friends pane -- will mount")
                             (go
                               (let [resp (<! (ajax-chan GET "/app/friends-info" {:user-id (.-uid js/cljat)}))]
                                 (reset! friends-info (->
                                                        (js->clj resp)
                                                        (walk/keywordize-keys)
                                                        (get-in [:data]))))))
     :component-did-mount (fn [_] (js/console.log "sidebar friends pane -- did mount"))
     :reagent-render (fn [sidebar-stats]
                       [:div {:id "sidebar-pane" :class "pane"}

    (r/create-class
      {:component-will-mount (fn [_]
                               (js/console.log "app component -- will mount")
                               (go
                                 (let [resp (<! (ajax-chan GET "/app/friends-info" {:user-id (.-uid js/cljat)}))]
                                   (reset! friends-info (->
                                                          (js->clj resp)
                                                          (walk/keywordize-keys)
                                                          (get-in [:data])))))
                               (go-loop []
                                 (let [val (<! ch-in)]
                                   (js/console.log "client recv!")
