       (conversations || []).forEach conversationsListItemView
 
 # messages
-
-messagesUtils =
-  messageGetUsername: (model, event) =>
-    chat_id = (event.sender_id || event.user_id).chat_id
-    return model.identitiesById[chat_id].name
 
 messageBodyView = (model, event) ->
   # Temporary doing this to get something to print

# conversations

conversationsListItemView = (conversation) ->
  div class:'conversation', conversation.name, onclick: (e) ->
    e.preventDefault()
    ipc.send 'conversation:select', conversation.id


  messages = model.messagesByConversationId[model.conversationCurrent] || []
  messages.forEach (message) ->
    div class: 'message', ->
      div class: 'user', ->
        chat_id = (message.sender_id || message.user_id).chat_id
        return model.identitiesById[chat_id].name || 'Unknown'
      div class: 'body', ->
        messageBodyView model, message

