 
     if channelId
 
-      @fetchSocialChannel (channel) =>
+      @fetchSocialChannel (err, channel) =>
+        return callback err  if err
 
         @createChatPaneView channel
-
         @isRealtimeSessionActive channelId, (isActive, file) =>
-
           if isActive
             @loadCollaborationFile file.result.items[0].id
             return @continuePrivateMessage callback


  fetchSocialChannel: (callback) ->

    return callback @socialChannel  if @socialChannel

    id = @channelId or @workspaceData.channelId

    KD.singletons.socialapi.cacheable 'channel', id, (err, channel) =>
      return KD.showError err  if err

      @setSocialChannel channel

      callback @socialChannel


  deletePrivateMessage: (callback = noop) ->

    method   = if share then 'share' else 'unshare'
    jMachine[method] usernames, (err) =>

      return callback err  if err

      kite   = @mountedMachine.getBaseKite()
      method = if share then 'klientShare' else 'klientUnshare'
