]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/helper/ProfileHelper.java
Don't reset avatar url path when updating profile with same avatar
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / helper / ProfileHelper.java
index 982acddd4ffa38b049145b960a4f6f44d3c3d83f..7d68124aa2ea848c31b4d002459e4cb5839cbcc7 100644 (file)
@@ -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();
             }
         }