Reputation: 1305
I want to add a group for eg VP to the chat room (XYZ Company). I am able to add a individual user to a chat room but i want to add a particular group to chat room. How can i achieve that?
I tried the following code
XMPPJID *userJid = [XMPPJID jidWithString:[NSString stringWithFormat:@"%@@%@",user,self.serverName]];
[xmppRoomToInvite editRoomPrivileges:@[[XMPPRoom itemWithAffiliation:@"member" jid:userJid]]];
[xmppRoomToInvite inviteUser:userJid withMessage:@"Welcome"];
But in openfire, i can see VP@servername was added as a member. But the users in the member group not receiving new chat room.
Upvotes: 0
Views: 449
Reputation: 9055
There is no such feature in XMPP as default. You cannot add a roster group in a MUC room in the MUC specification. You should have your client iterate on your roster to add your needed contact from client code.
Upvotes: 0