Explorar o código

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

JC Brand %!s(int64=7) %!d(string=hai) anos
pai
achega
8cc69ee5fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
                     }