Always replace pending contacts no matter their state when link is re-entered

This commit is contained in:
Torsten Grote
2019-10-16 13:06:21 -03:00
parent 397afbfec0
commit 1ddceaadd6
3 changed files with 9 additions and 20 deletions

View File

@@ -172,12 +172,6 @@ class ContactManagerImpl implements ContactManager, EventListener {
return pairs;
}
@Override
@Nullable
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));