(Room) from private to public

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
Michele
Posts: 2
Joined: 31 Aug 2011, 13:53

(Room) from private to public

Post by Michele »

Hello,
Can i convert a private room in public?
The room is created with the createRoom method of the SmartFoxClient class.

Thanks :wink:
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

Hi. Hum... not sure if it is possible...

In this topic that is still from this year, Lapo says that in "the next major update" it will be possible.

So... there's not yet a method to change a room from private to public.

But, you can always do it your way instead using sfs way hehe.

For example, you could create a room variable called "private" and then you could change it as you want (its recommended for you to set the variable owner to null, set persistent to true and only update it via a server-side extension).

Then on the client instead of doing if(room.isPrivate()), you would do if(room.getVariable("private"))...
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Michele
Posts: 2
Joined: 31 Aug 2011, 13:53

Post by Michele »

I understand. Thanks.
I will find another way! :wink:
Post Reply