From e832863e4d0028f87c1203a0d89e2a2c9c75214c Mon Sep 17 00:00:00 2001 From: "Stuart Blackler (@im5tu)" Date: Thu, 15 Sep 2016 11:17:25 +0100 Subject: [PATCH] Set JID for IqRequest --- Im/XmppIm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Im/XmppIm.cs b/Im/XmppIm.cs index c92bb316..77aab796 100644 --- a/Im/XmppIm.cs +++ b/Im/XmppIm.cs @@ -714,7 +714,7 @@ public void AddToRoster(RosterItem item) { foreach (string group in item.Groups) xml.Child(Xml.Element("group").Text(group)); var query = Xml.Element("query", "jabber:iq:roster").Child(xml); - Iq iq = IqRequest(IqType.Set, null, Jid, query); + Iq iq = IqRequest(IqType.Set, item.Jid, Jid, query); if (iq.Type == IqType.Error) throw Util.ExceptionFromError(iq, "The item could not be added to the roster."); }