app/assets/javascripts/backbone/models/me.js.coffee
6a6ccd01
 class Xmpp.Models.Me extends Xmpp.Models.Contact
d4872cda
   namespace: 'app.roster'
 
   defaults:
     jid: ''
     name: ''
     status: 'online'
     message: ''
4b5bb9c5
     avatar: ''
d4872cda
 
   initialize: ->
     _.bindAll(this)
 
4b5bb9c5
     @view = new Xmpp.Views.Contacts.MeView(model: this)
424fd46f
     @view.render()
 
   sendMessage: (message, chatId) ->
     App.debug ['sending from:', @get('jid'), message]
 
     App.Com.sendMessage(message, chatId, @get('jid'))