Commit 0dcfb739 authored by JC Brand's avatar JC Brand

Merge pull request #276 from gbonvehi/fix-roster-no-route

Fix old roster.js missing route parameter on connect
parents 95cbac27 fceccf3e
......@@ -72,7 +72,7 @@ Strophe.addConnectionPlugin('roster',
oldCallback.apply(this, arguments);
}
};
conn.connect = function(jid, pass, callback, wait, hold)
conn.connect = function(jid, pass, callback, wait, hold, route)
{
oldCallback = callback;
if (typeof jid == "undefined")
......@@ -80,7 +80,7 @@ Strophe.addConnectionPlugin('roster',
if (typeof pass == "undefined")
pass = null;
callback = newCallback;
_connect.apply(conn, [jid, pass, callback, wait, hold]);
_connect.apply(conn, [jid, pass, callback, wait, hold, route]);
};
conn.attach = function(jid, sid, rid, callback, wait, hold, wind)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment