mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 06:09:55 +01:00
addContact method which also takes a handshakePublicKey
This commit is contained in:
@@ -119,6 +119,15 @@ class ContactManagerImpl implements ContactManager, EventListener {
|
|||||||
verified, active));
|
verified, active));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ContactId addContact(Transaction txn, Author remote, AuthorId local,
|
||||||
|
PublicKey handshake, boolean verified) throws DbException {
|
||||||
|
ContactId c = db.addContact(txn, remote, local, handshake, verified);
|
||||||
|
Contact contact = db.getContact(txn, c);
|
||||||
|
for (ContactHook hook : hooks) hook.addingContact(txn, contact);
|
||||||
|
return c;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getHandshakeLink() throws DbException {
|
public String getHandshakeLink() throws DbException {
|
||||||
KeyPair keyPair = db.transactionWithResult(true,
|
KeyPair keyPair = db.transactionWithResult(true,
|
||||||
|
|||||||
Reference in New Issue
Block a user