Ios 管理花名册列表,xmppFramework
我从名册列表中删除用户,代码为:Ios 管理花名册列表,xmppFramework,ios,xmpp,ejabberd,xmppframework,Ios,Xmpp,Ejabberd,Xmppframework,我从名册列表中删除用户,代码为: XMPPUserCoreDataStorageObject *user = [[self fetchedResultsController] objectAtIndexPath:indexPath]; _currentDelete = user.jidStr; [[[self appDelegate] xmppRoster ]removeUser: [XMPPJID jidWithString: _currentDelete]]; 然后我
XMPPUserCoreDataStorageObject *user = [[self fetchedResultsController] objectAtIndexPath:indexPath];
_currentDelete = user.jidStr;
[[[self appDelegate] xmppRoster ]removeUser: [XMPPJID jidWithString: _currentDelete]];
然后我这样做,删除用户B的用户A正在从用户B名册列表中删除。有没有办法从用户B名册列表中删除用户A,而不是从用户A名册列表中删除用户B本身?当用户A删除用户B时,它会向B发送“未订阅”状态 所以,从B名单中删除A
if ([presenceType isEqualToString:@"unsubscribed"]) {
[xmppRoster removeUser:[presence from]];
}
希望有帮助:D