Code: Select all
message:String, sender:User, roomId:Number, userId:NumberCode: Select all
scope.onPrivateMessage(textMsg.toString(), scope.roomList[fromRoom].userList[usrId], usrId, fromRoom)Code: Select all
message:String, sender:User, roomId:Number, userId:NumberCode: Select all
scope.onPrivateMessage(textMsg.toString(), scope.roomList[fromRoom].userList[usrId], usrId, fromRoom)hi,duncanhall wrote:The documentation for the 'onPrivateMessage' method states that four parameters are received as:
However, after bashing my head and digging around in the code for a while, I found the actualy implementation of this method:Code: Select all
message:String, sender:User, roomId:Number, userId:Number
The last two parameters should be swapped around in the documetnation.Code: Select all
scope.onPrivateMessage(textMsg.toString(), scope.roomList[fromRoom].userList[usrId], usrId, fromRoom)