mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-26 02:24:21 +01:00
Don't reset avatar url path when updating profile with same avatar
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user