mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
added updateProfile on Dbus (fix)
This commit is contained in:
parent
152fc27c74
commit
d3c153ba32
1 changed files with 4 additions and 1 deletions
|
@ -251,8 +251,11 @@ public class DbusSignalImpl implements Signal {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void updateProfile(final String name,final String about,final String aboutEmoji, final String avatarPath, final boolean removeAvatar) {
|
||||
public void updateProfile(final String name,final String about,final String aboutEmoji, String avatarPath, final boolean removeAvatar) {
|
||||
try {
|
||||
if (avatarPath.isEmpty()) {
|
||||
avatarPath = null;
|
||||
}
|
||||
Optional<File> avatarFile = removeAvatar
|
||||
? Optional.absent()
|
||||
: avatarPath == null ? null : Optional.of(new File(avatarPath));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue