Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMPPRoster, handle unsubscribe ! #166

Closed
wilkespan opened this issue Mar 22, 2013 · 3 comments
Closed

XMPPRoster, handle unsubscribe ! #166

wilkespan opened this issue Mar 22, 2013 · 3 comments

Comments

@wilkespan
Copy link

When send subscription presence to user , the user was added in storage whether he accept or decline.
In - (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)presence method , it should judge the type of presence.
....
else if ([[presence type] isEqualToString:@"unsubscribe"])
{
[self removeUser:presence.from];
}
....

@ObjColumnist
Copy link
Collaborator

According to the RFC 3921 section 8.2.1 if you request to subscribe to someones presence and they decline, they still appear in your roster so this works as expected.

@ObjColumnist
Copy link
Collaborator

I think this may have been the same issue as #186 , could you recheck to see if the XMPPRoster now works as expected?

@ObjColumnist
Copy link
Collaborator

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants