Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Is it even possible?
Page: previous  1  2 
Avatar
Alex #16
Member since Feb 2003 · 4297 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)
        xmpp.PresenceManager.ApproveSubscriptionRequest(pres.From);
}
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:

no

Quote by Ingvarr:
{<iq xmlns="jabber:client" from="jaft@jabster.pl" to="jaft@jabster.pl/Serwer" type="result" id="agsXMPP_4"><query xmlns="jabber:iq:roster"><item jid="xxx@jabster.pl" subscription="from" /><item jid="yyy@gmail.com" 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.

Alex
Avatar
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