瀏覽代碼

Bugfix. Image was getting unset when saving own vcard

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