mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Only remove PendingContact from UI when removed from DB
This commit is contained in:
@@ -222,9 +222,15 @@ class ContactManagerImpl implements ContactManager {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removePendingContact(PendingContact pendingContact) {
|
||||
public void removePendingContact(PendingContact pendingContact,
|
||||
Runnable commitAction) throws DbException {
|
||||
// TODO replace with real implementation
|
||||
pendingContacts.remove(pendingContact);
|
||||
try {
|
||||
Thread.sleep(250);
|
||||
} catch (InterruptedException ignored) {
|
||||
}
|
||||
db.transaction(true, txn -> txn.attach(commitAction));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user