mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Merge profile commands to a single UpdateProfileCommand
This commit is contained in:
parent
abb6ebc910
commit
958d10fcd1
6 changed files with 89 additions and 89 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue