瀏覽代碼

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

JC Brand 11 年之前
父節點
當前提交
4273e19716
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
         },