我正在尝试List of chat room members给出的解决方案但是。但是从这个链接我混淆了'editRoomPrivileges'方法的位置。我正面临着关联权限的确切问题。我试图将每个参与者的联盟权限设置为来自组所有者帐户的“成员”,但我在方法中出现“不允许”错误
- (void) xmppRoom:(XMPPRoom *)sender didNotEditPrivileges:(XMPPIQ *)iqError
我认为defauld的集团所有者有权修改附属关系。房间是持久和公共的类型。
我邀请了这样的用户,
- (void) xmppRoomDidCreate: (XMPPRoom *)sender
{
//ArrNewRoomInfo contain multiple user to be included in room
for (int k=0; k < ArrNewRoomInfo.count; k++)
{
NSString *pureNumbers = [[[[ArrNewRoomInfo objectAtIndex:k] valueForKey:@"mobno"] componentsSeparatedByCharactersInSet:[[NSCharacterSet decimalDigitCharacterSet] invertedSet]] componentsJoinedByString:@""];
NSString *strInvitedUserName = [NSString stringWithFormat:@"%@@elmajabber",pureNumbers];
[sender editRoomPrivileges:@[[XMPPRoom itemWithAffiliation:@"member" jid:[XMPPJID jidWithString:strInvitedUserName]]]];
[sender inviteUser:[XMPPJID jidWithString:strInvitedUserName] withMessage:[NSString stringWithFormat:@"%@",[[ArrNewRoomInfo objectAtIndex:k] valueForKey:@"GroupName"]]];
}
}
请帮助我获得会员名单。