Element e = (Element) it.next();
String uri = e.getAttributeValue("uri");
Buddy buddy = context.getFetionStore().getBuddyByUri(uri);
if(buddy!=null) {
//检查用户关系的变化
Relation relation = ParseHelper.parseRelation(e.getAttributeValue("relation-status"));
//如果当前好友关系是没有确认,而返回的好友是确认了,表明好友同意了你添加好友的请求
if(relation==Relation.BUDDY && buddy.getRelation()!=Relation.BUDDY) {
//因为这里是手机好友,没有详细信息,故不再获取详细信息
logger.debug("Mobile buddy agreed your buddy request:"+buddy.getFetionId());