     user: null
     conversations: []
     conversationsMeta: {}
+    loading: true
 
   componentDidMount: ->
     @handleAuthChange()

PromiseToSetState = require '../lib/promise-to-set-state'
Paginator = require './lib/paginator'
Router = {Link} = require 'react-router'

PAGE_SIZE = 10


    talkClient.type('conversations').get({user_id: @state.user.id, page_size: PAGE_SIZE, page,sort: '-updated_at'})
      .then (conversations) =>
        conversationsMeta = conversations[0]?.getMeta()
        @setState {conversations, conversationsMeta, loading: false}

  onPageChange: (page) ->
    @goToPage(page)
