mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Add information about whether Contact is active to ContactAddedEvent
This commit is contained in:
@@ -161,7 +161,7 @@ class DatabaseComponentImpl<T> implements DatabaseComponent {
|
||||
if (db.containsContact(txn, remote.getId(), local))
|
||||
throw new ContactExistsException();
|
||||
ContactId c = db.addContact(txn, remote, local, active);
|
||||
transaction.attach(new ContactAddedEvent(c));
|
||||
transaction.attach(new ContactAddedEvent(c, active));
|
||||
if (active) transaction.attach(new ContactStatusChangedEvent(c, true));
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user