我正在尝试在聊天室成员列表中给出的解决方案,但是。但是从这个链接我很困惑在哪里放置'editRoomPrivileges'方法。我正面临从属许可的确切问题。我试图从组所有者帐户将每个参与者的附属权限设置为“成员”,但我在方法中遇到“不允许”错误
- (void) xmppRoom:(XMPPRoom *)sender didNotEditPrivileges:(XMPPIQ *)iqError
我认为默认的组所有者有权修改从属关系。房间属于持久型和公共型。
我邀请了这样的用户,
- (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"]]];
}
}
请帮我获取房间成员列表。