Commit 4273e197 authored by JC Brand's avatar JC Brand

rid and sid are on the _proto obj. Fixes #180

parent 0d3977d3
...@@ -3760,13 +3760,13 @@ ...@@ -3760,13 +3760,13 @@
}, },
'getRID': function () { 'getRID': function () {
if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") { if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
return converse.connection.rid; return converse.connection._proto.rid;
} }
return null; return null;
}, },
'getSID': function () { 'getSID': function () {
if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") { if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
return converse.connection.sid; return converse.connection._proto.sid;
} }
return null; return null;
}, },
......
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