mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Call the listeners if a new ack might need to be sent.
This commit is contained in:
@@ -4,6 +4,7 @@ package net.sf.briar.api.db;
|
|||||||
public interface DatabaseListener {
|
public interface DatabaseListener {
|
||||||
|
|
||||||
static enum Event {
|
static enum Event {
|
||||||
|
ACKS_ADDED,
|
||||||
CONTACTS_UPDATED,
|
CONTACTS_UPDATED,
|
||||||
MESSAGES_ADDED,
|
MESSAGES_ADDED,
|
||||||
SUBSCRIPTIONS_UPDATED,
|
SUBSCRIPTIONS_UPDATED,
|
||||||
|
|||||||
@@ -937,6 +937,7 @@ DatabaseCleaner.Callback {
|
|||||||
contactLock.readLock().unlock();
|
contactLock.readLock().unlock();
|
||||||
}
|
}
|
||||||
// Call the listeners outside the lock
|
// Call the listeners outside the lock
|
||||||
|
callListeners(Event.ACKS_ADDED);
|
||||||
if(anyAdded) callListeners(Event.MESSAGES_ADDED);
|
if(anyAdded) callListeners(Event.MESSAGES_ADDED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user