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

This commit is contained in:
JC Brand 2014-06-14 20:41:20 +02:00
parent 0d3977d3d4
commit 4273e19716

View File

@ -3760,13 +3760,13 @@
},
'getRID': function () {
if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
return converse.connection.rid;
return converse.connection._proto.rid;
}
return null;
},
'getSID': function () {
if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
return converse.connection.sid;
return converse.connection._proto.sid;
}
return null;
},