     @broadcaster.emit channelMQName, JSON.stringify(chatItem)
     return unless @channels[toChannel]
     #chatItem.author = "me"
-    @channels[toChannel].messageReceived chatItem
+    @deliverMessageToChannel @channels[toChannel], chatItem
+
+  deliverMessageToChannel: (channel, message) ->
+    itemInstance = channel.messageReceived message
+    itemInstance.registerListener
+      KDEventTypes: 'click'
+      listener    : @
+      callback    : (pubInst, event) =>
+        return unless $(event.target).is('a.open-new-chat')
+        channelName = $(event.target).text()
+        @joinChannel channelName
 
   fetchAutoCompleteForMentionField:(inputValue,blacklist,callback)->
     bongo.api.JAccount.byRelevance inputValue,{blacklist},(err,accounts)->

  loadView:(mainView)->
    @joinChannel "@#{@username}"
    @joinChannel PUBLIC
    @joinChannel "#koding"

  joinChannel: (name) ->
    return @channels[name] if @channels[name]

    @template.update()

  pistachio:->
    parsedBody = @getData().body.replace(TOPICREGEX, "<a class='open-new-chat' href='#'>$&</a>")
    parsedChannel = @getData().channel?.replace(TOPICREGEX, "<a href='#'>$&</a>")

    """
