Commits

Ivan Vučica committed 0933676

Subscribe->subscribed->subscribe.

  • Participants
  • Parent commits 2abb95d

Comments (0)

Files changed (1)

File pong-network.js

     }
 }
 
-function pong_addContact(bareJid, type)
+function pong_addContact(bareJid, type, skipRoster)
 {
     /* type: one of the following values: 'subscribe' or 'subscribed' */
+    if(!skipRoster)
     {
         var packet = new zxmpp.packet(zxmpp);
         var iq = new zxmpp.stanzaIq(zxmpp);
                 else if (stanza.type == "subscribed")
                 {
                     pong_reCap(presence.fullJid);
+                    pong_addContact(presence.bareJid, "subscribe", true);
                 }
                 else
                 {