Add random comment header to built-in avatar PNGs
To make them unique. For issue #659.
This commit is contained in:
parent
7810d43d7a
commit
2e12f719e8
4 changed files with 184 additions and 4 deletions
|
|
@ -268,7 +268,8 @@ export default {
|
|||
this.selectedProfile.image,
|
||||
function (progress) {
|
||||
console.log("Progress: " + JSON.stringify(progress));
|
||||
}
|
||||
},
|
||||
!this.selectedProfile.imageSelectedByUser
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -377,6 +378,7 @@ export default {
|
|||
handlePickedUserAvatar(event) {
|
||||
util.loadAvatarFromFile(event, (image) => {
|
||||
this.selectedProfile.image = image;
|
||||
this.selectedProfile.imageSelectedByUser = true;
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -412,7 +412,7 @@ export default {
|
|||
console.log("Join: Updating avatar");
|
||||
return util.setAvatar(this.$matrix, this.selectedProfile.image, function (progress) {
|
||||
console.log("Progress: " + JSON.stringify(progress));
|
||||
});
|
||||
}, !this.selectedProfile.imageSelectedByUser);
|
||||
}
|
||||
}.bind(this)
|
||||
)
|
||||
|
|
@ -480,6 +480,7 @@ export default {
|
|||
handlePickedAvatar(event) {
|
||||
util.loadAvatarFromFile(event, (image) => {
|
||||
this.selectedProfile.image = image;
|
||||
this.selectedProfile.imageSelectedByUser = true;
|
||||
});
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue