Merge pull request #23736 from nextcloud/backport/23721/stable20

[stable20] reset avatar cropper before showing
This commit is contained in:
Morris Jobke 2020-10-28 08:49:49 +01:00 committed by GitHub
commit ca4eaf9ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ function avatarResponseHandler (data) {
oc_userconfig.avatar.generated = false;
updateAvatar();
} else if (data.data === "notsquare") {
cleanCropper();
showAvatarCropper();
} else {
$warning.show();