Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
.net_developer #1
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
Subject: Leave a room permenently which is persistent and members only
hii,i am developing chat application in c#.net,i want to know is there any method to leave a room which is persistent and members only permenantly,so that it's member list won't return your id,is it possible with muc.Leaveroom(),and what if the creator of the room ,i.e owner leaves the room ,who will be next owner?
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can leave and rejoin a room at any time. You are still the owner when you leave a room.

Check out XEP-0045 here for more info about all the features:
http://xmpp.org/extensions/xep-0045.html

especially:
http://xmpp.org/extensions/xep-0045.html#modifyowner
http://xmpp.org/extensions/xep-0045.html#modifymember

Alex
Avatar
.net_developer #3
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
thank you,but is there a way to escape from a room or leave a room permenantly,like that we do in skype and whtsapp,so that no one could get a clue of our existence in a room in future..
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can Destroy a room at any time.
When a room is "non persistent" then it gets destroyed automatically when the last participant leaves.
Avatar
.net_developer #5
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
but,after  destroying room what will be with other partcipents.would they be able to chat in that room?or they will have to recreate that room with joinroom()?
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  • when you send the destroy command then it gets destroyed immediately. Room gets destroyed and everyone kicked out
  • When a room is not persistent it destroys itself after the last participant leaves the room

So either use non persistent rooms, or change the room from persistent to non persistent when you want the self destroy feature after the last person leaves. You can make rooms also hidden, then they should not appear in the disco items requests. See your server documentation for the features here also.
This post was edited on 2015-09-16, 09:42 by Alex.
Avatar
.net_developer #7
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
Thank you very much for yor quick and helping response..
Avatar
.net_developer #8
Member since Sep 2015 · 41 posts
Group memberships: Members
Show profile · Link to this post
after leaving room how other members will get notification of that?
Avatar
Alex #9
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
of course they do as an unavailable presence.
Please read the MUC documentation is posted above. Everything is described there n detail, with many examples.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS