【发布时间】:2013-05-30 13:01:17
【问题描述】:
这是我用来发送好友请求的代码
XMPPJID *newBuddy = [XMPPJID jidWithString:userName];
[[self appDelegate].xmppRoster addUser:newBuddy withNickname:nil];
这是我用来接受好友请求的代码,工作正常。
XMPPJID *newBuddy = [XMPPJID jidWithString:ipAddress];
[[self appDelegate].xmppRoster acceptPresenceSubscriptionRequestFrom:newBuddy andAddToRoster:YES];
问题是,每当我再次接受请求时,我都会从接受的用户那里获得订阅,这就是问题所在。如何在 xmpp 中停止双向订阅帮助我
【问题讨论】: