mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Don't reset avatar url path when updating profile with same avatar
This commit is contained in:
parent
7ac6c9a170
commit
06a9884e99
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue