mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Add 'verified' flag to ContactAddedEvent.
This commit is contained in:
@@ -244,7 +244,7 @@ class DatabaseComponentImpl<T> implements DatabaseComponent {
|
||||
if (db.containsContact(txn, remote.getId(), local))
|
||||
throw new ContactExistsException(local, remote);
|
||||
ContactId c = db.addContact(txn, remote, local, verified);
|
||||
transaction.attach(new ContactAddedEvent(c));
|
||||
transaction.attach(new ContactAddedEvent(c, verified));
|
||||
return c;
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ class DatabaseComponentImpl<T> implements DatabaseComponent {
|
||||
ContactId c = db.addContact(txn, remote, local, verified);
|
||||
db.transferKeys(txn, p, c);
|
||||
db.removePendingContact(txn, p);
|
||||
transaction.attach(new ContactAddedEvent(c));
|
||||
transaction.attach(new ContactAddedEvent(c, verified));
|
||||
transaction.attach(new PendingContactRemovedEvent(p));
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user