Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
mahendra #1
Member since Mar 2015 · 12 posts
Group memberships: Members
Show profile · Link to this post
Subject: Force join JIDs to a existing Room
Hello Alex,

I want to create a room, change its configuration and then make some jids forcefully join. is this possible with matrix library?
Create Room & Change Configuration already done.

Thanks
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
please read this blog post for creating and configuring a room:
http://www.ag-software.net/2014/01/21/task-based-asynchron…

To invite other users you can use Invite or DirectInvite from the MucManager.
This does not force them to join autoamatically, but can process the request in your code automatically and join them to a room.

see also:
Avatar
mahendra #3
Member since Mar 2015 · 12 posts
Group memberships: Members
Show profile · Link to this post
when i invite a JID, i want that that user automatically enter the room and ready for chat, is there any provision for that? or user have to accept the invitaion for Room.

please check the log, when i invite the user using DirectInvite method

  1. RECV: <iq type="result" id="MX_5" from="testroom@conference.vgwwinsvr2008" to="admin@vgwwinsvr2008/MatriX" xmlns="jabber:client" />
  2. SEND: <message to="8955088887@vgwwinsvr2008/Matrix" xmlns="jabber:client">
  3.   <x jid="testroom@conference.vgwwinsvr2008" xmlns="jabber:x:conference" />
  4. </message>
This post was edited on 2015-03-10, 10:44 by Alex.
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by mahendra:
  1. SEND: <message to="8955088887@vgwwinsvr2008/Matrix" xmlns="jabber:client">
  2.   <x jid="testroom@conference.vgwwinsvr2008" xmlns="jabber:x:conference" />
  3. </message>

when you want to automate this then you have to precess the stanza above automatically.
  • check if the user gets an invite
  • If true read the room Jid
  • Execute MucManager.Enter(jid) on the client which got the invite
Avatar
mahendra #5
Member since Mar 2015 · 12 posts
Group memberships: Members
Show profile · Link to this post
ok thanks for your quick reply
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: MatriX RSS