import org.asamk.signal.manager.api.UpdateProfile;
import org.asamk.signal.output.OutputWriter;
-import java.io.File;
import java.io.IOException;
import java.util.Base64;
var avatarPath = ns.getString("avatar");
boolean removeAvatar = Boolean.TRUE.equals(ns.getBoolean("remove-avatar"));
- File avatarFile = removeAvatar || avatarPath == null ? null : new File(avatarPath);
+ String avatarFile = removeAvatar || avatarPath == null ? null : avatarPath;
try {
m.updateProfile(UpdateProfile.newBuilder()