Don't reset avatar url path when updating profile with same avatar

This commit is contained in:
AsamK 2022-05-18 19:12:20 +02:00
parent 7ac6c9a170
commit 06a9884e99

View file

@ -157,7 +157,9 @@ public final class ProfileHelper {
paymentsAddress,
avatarUploadParams,
List.of(/* TODO */));
builder.withAvatarUrlPath(avatarPath.orElse(null));
if (!avatarUploadParams.keepTheSame) {
builder.withAvatarUrlPath(avatarPath.orElse(null));
}
newProfile = builder.build();
}
}