Add method for adding a contact without transport keys.

This commit is contained in:
akwizgran
2018-03-27 15:56:35 +01:00
parent bb2f94d5eb
commit cb8f89db53
2 changed files with 20 additions and 2 deletions

View File

@@ -60,6 +60,16 @@ class ContactManagerImpl implements ContactManager {
return c;
}
@Override
public ContactId addContact(Transaction txn, Author remote, AuthorId local,
boolean verified, boolean active) throws DbException {
ContactId c = db.addContact(txn, remote, local, verified, active);
Contact contact = db.getContact(txn, c);
for (AddContactHook hook : addHooks)
hook.addingContact(txn, contact);
return c;
}
@Override
public ContactId addContact(Author remote, AuthorId local, SecretKey master,
long timestamp, boolean alice, boolean verified, boolean active)