mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 14:19:53 +01:00
Address review feedback.
This commit is contained in:
@@ -63,9 +63,26 @@ public interface MailboxUpdateManager {
|
|||||||
*/
|
*/
|
||||||
String GROUP_KEY_SENT_CLIENT_SUPPORTS = "sentClientSupports";
|
String GROUP_KEY_SENT_CLIENT_SUPPORTS = "sentClientSupports";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the latest {@link MailboxUpdate} sent to the given contact.
|
||||||
|
* <p>
|
||||||
|
* If we have our own mailbox then the update will be a
|
||||||
|
* {@link MailboxUpdateWithMailbox} containing the
|
||||||
|
* {@link MailboxProperties} the contact should use for communicating with
|
||||||
|
* our mailbox.
|
||||||
|
*/
|
||||||
MailboxUpdate getLocalUpdate(Transaction txn, ContactId c)
|
MailboxUpdate getLocalUpdate(Transaction txn, ContactId c)
|
||||||
throws DbException;
|
throws DbException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the latest {@link MailboxUpdate} received from the given
|
||||||
|
* contact, or null if no update has been received.
|
||||||
|
* <p>
|
||||||
|
* If the contact has a mailbox then the update will be a
|
||||||
|
* {@link MailboxUpdateWithMailbox} containing the
|
||||||
|
* {@link MailboxProperties} we should use for communicating with the
|
||||||
|
* contact's mailbox.
|
||||||
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
MailboxUpdate getRemoteUpdate(Transaction txn, ContactId c)
|
MailboxUpdate getRemoteUpdate(Transaction txn, ContactId c)
|
||||||
throws DbException;
|
throws DbException;
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ class OwnMailboxContactListWorker
|
|||||||
if (state != State.UPDATING_CONTACT_LIST) return;
|
if (state != State.UPDATING_CONTACT_LIST) return;
|
||||||
update = updates.poll();
|
update = updates.poll();
|
||||||
if (update == null) {
|
if (update == null) {
|
||||||
LOG.info("Contact list is up to date");
|
LOG.info("No more updates to process");
|
||||||
state = State.WAITING_FOR_CHANGES;
|
state = State.WAITING_FOR_CHANGES;
|
||||||
apiCall = null;
|
apiCall = null;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user