Update comments.

This commit is contained in:
akwizgran
2022-08-16 14:14:14 +01:00
parent 9990fb3b8f
commit 0af371d026
2 changed files with 5 additions and 1 deletions

View File

@@ -62,6 +62,8 @@ public interface MailboxSettingsManager {
/** /**
* Called when we receive our mailbox's server-supported API versions. * Called when we receive our mailbox's server-supported API versions.
* This happens whenever we successfully check the connectivity of
* our mailbox, so this hook may be called frequently.
* *
* @param txn A read-write transaction * @param txn A read-write transaction
*/ */

View File

@@ -216,7 +216,9 @@ class MailboxUpdateManagerImpl implements MailboxUpdateManager,
Group contactGroup = getContactGroup(c); Group contactGroup = getContactGroup(c);
LatestUpdate latest = LatestUpdate latest =
findLatest(txn, contactGroup.getId(), true); findLatest(txn, contactGroup.getId(), true);
// This method should only be called when we have a mailbox // This method should only be called when we have a mailbox,
// in which case we should have sent a local update to every
// contact
if (latest == null) throw new DbException(); if (latest == null) throw new DbException();
BdfList body = BdfList body =
clientHelper.getMessageAsList(txn, latest.messageId); clientHelper.getMessageAsList(txn, latest.messageId);