Only delete profile avatars during explicit delete actions

This preserves the avatar during re-registration, when PIN recovery might occur.
This commit is contained in:
Chris Eager
2025-07-14 16:09:36 -05:00
committed by ravi-signal
parent 58b9fa100d
commit ca9f29f984
10 changed files with 43 additions and 24 deletions

View File

@@ -193,7 +193,7 @@ public class ProfileController {
request.commitment().serialize()));
if (request.getAvatarChange() != CreateProfileRequest.AvatarChange.UNCHANGED) {
currentAvatar.ifPresent(s -> profilesManager.deleteAvatar(s).join());
currentAvatar.ifPresent(profilesManager::deleteAvatar);
}
accountsManager.update(account, a -> {