mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40: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,
|
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…
Add table
Add a link
Reference in a new issue