Only remove PendingContact from UI when removed from DB

This commit is contained in:
Torsten Grote
2019-05-01 10:15:07 -03:00
parent 7a71d2bad4
commit 2c014b4e46
4 changed files with 16 additions and 6 deletions

View File

@@ -79,8 +79,10 @@ public interface ContactManager {
/**
* Removes a {@link PendingContact} that is in state
* {@link PendingContactState FAILED}.
* @param commitAction an action to run on the main thread after removing.
*/
void removePendingContact(PendingContact pendingContact) throws DbException;
void removePendingContact(PendingContact pendingContact,
Runnable commitAction) throws DbException;
/**
* Returns the contact with the given ID.