Add random comment header to built-in avatar PNGs

To make them unique. For issue #659.
This commit is contained in:
N-Pex 2025-09-16 12:45:50 +02:00
parent 7810d43d7a
commit 2e12f719e8
4 changed files with 184 additions and 4 deletions

View file

@ -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;
});
},

View file

@ -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;
});
},
},