Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Is it even possible?
Page: previous  1  2 
Alex #16
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 4206
Quote by Ingvarr:
I do something like this:

void xmpp_OnPresence(object sender, Presence pres)
    if (pres.Type == PresenceType.subscribe)
this is correct for incoming subscription requests. But when you add a contact to have also ask for subscription.

Quote by Ingvarr:
So they should be subscribed... this is one of IQ's I recieve after login:


Quote by Ingvarr:
{<iq xmlns="jabber:client" from="" to="" type="result" id="agsXMPP_4"><query xmlns="jabber:iq:roster"><item jid="" subscription="from" /><item jid="" subscription="from" /></query></iq>}
All your contacts have a subscription of from which is not what you need. You need both. You have no correct subscription for this contacts. Use PresenceManager.Subscribe to subscribe to a contact when you add it.

Ingvarr #17
Member since Jun 2009 · 9 posts
Group memberships: Members
Show profile · Link to this post
It worked :) Thank you very much for your help :)
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page: previous  1  2 
Forum: agsXMPP RSS