   # @nodoc
   roomMessage : (roomName, msg, cb) ->
     @withRoom roomName, withEH cb, (room) =>
-      msg = processMessage @username, msg
-      room.message @username, msg, withEH cb, =>
-        @send roomName, 'roomMessage', roomName, @username, msg
+      pmsg = processMessage @username, msg
+      room.message @username, pmsg, withEH cb, =>
+        @send roomName, 'roomMessage', roomName, @username, pmsg
         cb null, msg
 
   # @private

      return cb error
    @chatState.getOnlineUser toUserName, withEH cb, (toUser) =>
      @chatState.getOnlineUser @username, withEH cb, (fromUser) =>
        msg = processMessage @username, msg
        toUser.message @username, msg, withEH cb, =>
          fromUser.userState.socketsGetAll withEH cb, (sockets) =>
            for sid in sockets
              if sid != id
                @send sid, 'directMessageEcho', toUserName, msg
            toUser.userState.socketsGetAll withEH cb, (sockets) =>
              for sid in sockets
                @send sid, 'directMessage', @username, msg
              cb null, msg

  # @private

checkMessage = (msg) ->
  passed = check.object msg
  unless passed then return false
  return check.map msg, { textMessage : check.string }

# @private
# @nodoc
