use change_contact_name

This commit is contained in:
adbenitez 2025-03-20 18:41:11 +01:00
parent c1eff8362f
commit b14b8eea9d
2 changed files with 3 additions and 3 deletions

View file

@ -129,8 +129,8 @@ public class Rpc {
return getResult("get_account_file_size", accountId).getAsInt(); return getResult("get_account_file_size", accountId).getAsInt();
} }
public int createContact(int accountId, String email, String name) throws RpcException { public void changeContactName(int accountId, int contactId, String name) throws RpcException {
return getResult("create_contact", accountId, email, name).getAsInt(); getResult("change_contact_name", accountId, contactId, name);
} }
public int addAccount() throws RpcException { public int addAccount() throws RpcException {

View file

@ -561,7 +561,7 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
.setPositiveButton(android.R.string.ok, (dialog, whichButton) -> { .setPositiveButton(android.R.string.ok, (dialog, whichButton) -> {
String newName = inputField.getText().toString(); String newName = inputField.getText().toString();
try { try {
rpc.createContact(accountId, dcContact.getAddr(), newName); rpc.changeContactName(accountId, contactId, newName);
} catch (RpcException e) { } catch (RpcException e) {
e.printStackTrace(); e.printStackTrace();
} }