Also, is there some way to mimic having a null sender for the cases where the message originates from the server, without having to do something like:
Code: Select all
if( getRoom().getUserList().size() > 0 )
{
sendObjectMessage( room, room.getUserList()[0], sfsobject, room.getUserList() )
}
instead of just:
Code: Select all
sendObjectMessage( room, null, sfsobject );
which is much easier to read and works even if the room is empty?