* wip
This commit is contained in:
parent
0f4be88677
commit
8900af5196
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue