[bramble] add method for getting pending contact state

This commit is contained in:
Torsten Grote
2019-10-15 14:46:37 -03:00
parent 75fcd28071
commit 4bf8d4c0e7
2 changed files with 10 additions and 0 deletions

View File

@@ -172,6 +172,11 @@ class ContactManagerImpl implements ContactManager, EventListener {
return pairs;
}
@Override
public PendingContactState getPendingContactState(PendingContactId p) {
return states.get(p);
}
@Override
public void removePendingContact(PendingContactId p) throws DbException {
db.transaction(false, txn -> db.removePendingContact(txn, p));