Browse Source

Bugfix. Image was getting unset when saving own vcard

JC Brand 7 năm trước cách đây
mục cha
commit
dc97488b7a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 {