mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-07 16:04:27 +01:00
Merge profile commands to a single UpdateProfileCommand
This commit is contained in:
@@ -210,7 +210,13 @@ public class Manager implements Signal {
|
||||
}
|
||||
|
||||
public void setProfileAvatar(File avatar) throws IOException {
|
||||
accountManager.setProfileAvatar(account.getProfileKey(), Utils.createStreamDetailsFromFile(avatar));
|
||||
final StreamDetails streamDetails = Utils.createStreamDetailsFromFile(avatar);
|
||||
accountManager.setProfileAvatar(account.getProfileKey(), streamDetails);
|
||||
streamDetails.getStream().close();
|
||||
}
|
||||
|
||||
public void removeProfileAvatar() throws IOException {
|
||||
accountManager.setProfileAvatar(account.getProfileKey(), null);
|
||||
}
|
||||
|
||||
public void unregister() throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user