Don't reset avatar url path when updating profile with same avatar
This commit is contained in:
parent
7ac6c9a170
commit
06a9884e99
@ -157,7 +157,9 @@ public final class ProfileHelper {
|
|||||||
paymentsAddress,
|
paymentsAddress,
|
||||||
avatarUploadParams,
|
avatarUploadParams,
|
||||||
List.of(/* TODO */));
|
List.of(/* TODO */));
|
||||||
|
if (!avatarUploadParams.keepTheSame) {
|
||||||
builder.withAvatarUrlPath(avatarPath.orElse(null));
|
builder.withAvatarUrlPath(avatarPath.orElse(null));
|
||||||
|
}
|
||||||
newProfile = builder.build();
|
newProfile = builder.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user