浏览代码

No need for a toJSON call, it's already an object

JC Brand 6 年之前
父节点
当前提交
8cc69ee5fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/converse-omemo.js

+ 1 - 1
src/converse-omemo.js

@@ -653,7 +653,7 @@
                      * this device, if the information is not at hand already.
                      */
                     if (this.get('bundle')) {
-                        return Promise.resolve(this.get('bundle').toJSON(), this);
+                        return Promise.resolve(this.get('bundle'), this);
                     } else {
                         return this.fetchBundleFromServer();
                     }