Prechádzať zdrojové kódy

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

JC Brand 11 rokov pred
rodič
commit
4273e19716
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      converse.js

+ 2 - 2
converse.js

@@ -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;
         },