This commit is contained in:
Seth Call 2016-01-31 08:01:33 -06:00
parent 0f4be88677
commit 8900af5196
1 changed files with 4 additions and 5 deletions

View File

@ -23,10 +23,9 @@ logger = context.JK.logger
# called from ChatPanel
onSessionStarted: () ->
logger.debug("ChatStore: onSessionStarted")
logger.debug("ChatStore: onSessionStarted", this)
@msgs['session'] = []
@channel = 'session'
@textBox.val('')
@onEmptyChannel(@channel)
onEmptyChannel: (channel) ->
@ -88,11 +87,11 @@ logger = context.JK.logger
done(response)
console.log("ON SEND MESSAGE SIMULATE", response)
#console.log("ON SEND MESSAGE SIMULATE", response)
@onMsgReceived({
sender_name: context.JK.currentUserName
sender_id: context.JK.currentuserId
sender_name: "me",
sender_id: context.JK.currentUserId,
msg: msg,
msg_id: response.id,
created_at: response.created_at,