mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
use change_contact_name
This commit is contained in:
@@ -129,8 +129,8 @@ public class Rpc {
|
||||
return getResult("get_account_file_size", accountId).getAsInt();
|
||||
}
|
||||
|
||||
public int createContact(int accountId, String email, String name) throws RpcException {
|
||||
return getResult("create_contact", accountId, email, name).getAsInt();
|
||||
public void changeContactName(int accountId, int contactId, String name) throws RpcException {
|
||||
getResult("change_contact_name", accountId, contactId, name);
|
||||
}
|
||||
|
||||
public int addAccount() throws RpcException {
|
||||
|
||||
@@ -561,7 +561,7 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
|
||||
.setPositiveButton(android.R.string.ok, (dialog, whichButton) -> {
|
||||
String newName = inputField.getText().toString();
|
||||
try {
|
||||
rpc.createContact(accountId, dcContact.getAddr(), newName);
|
||||
rpc.changeContactName(accountId, contactId, newName);
|
||||
} catch (RpcException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user