mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
Split given/family name in updateContact command
This commit is contained in:
parent
27dbc671e0
commit
badbb55ef2
7 changed files with 32 additions and 13 deletions
|
@ -409,9 +409,9 @@ public class DbusManagerImpl implements Manager {
|
|||
|
||||
@Override
|
||||
public void setContactName(
|
||||
final RecipientIdentifier.Single recipient, final String name
|
||||
final RecipientIdentifier.Single recipient, final String givenName, final String familyName
|
||||
) throws NotPrimaryDeviceException {
|
||||
signal.setContactName(recipient.getIdentifier(), name);
|
||||
signal.setContactName(recipient.getIdentifier(), givenName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -492,7 +492,7 @@ public class DbusSignalImpl implements Signal {
|
|||
@Override
|
||||
public void setContactName(final String number, final String name) {
|
||||
try {
|
||||
m.setContactName(getSingleRecipientIdentifier(number, m.getSelfNumber()), name);
|
||||
m.setContactName(getSingleRecipientIdentifier(number, m.getSelfNumber()), name, "");
|
||||
} catch (NotPrimaryDeviceException e) {
|
||||
throw new Error.Failure("This command doesn't work on linked devices.");
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue