Ver código fonte

Bugfix. Image was getting unset when saving own vcard

JC Brand 7 anos atrás
pai
commit
dc97488b7a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/converse-profile.js

+ 2 - 2
src/converse-profile.js

@@ -118,8 +118,8 @@
                     };
                     if (!image_file.size) {
                         _.extend(data, {
-                            'image': this.model.get('image'),
-                            'image_type': this.model.get('image_type')
+                            'image': this.model.vcard.get('image'),
+                            'image_type': this.model.vcard.get('image_type')
                         });
                         this.setVCard(body, data);
                     } else {