소스 검색

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 {