Always sort lists of API versions for easier comparison.

This commit is contained in:
akwizgran
2022-08-02 17:54:02 +01:00
parent 1699d6b5f8
commit 42e2926d61
4 changed files with 16 additions and 3 deletions

View File

@@ -85,7 +85,8 @@ public class MailboxProperties {
onion.equals(m.onion) &&
authToken.equals(m.authToken) &&
NullSafety.equals(inboxId, m.inboxId) &&
NullSafety.equals(outboxId, m.outboxId);
NullSafety.equals(outboxId, m.outboxId) &&
serverSupports.equals(m.serverSupports);
}
return false;
}

View File

@@ -67,6 +67,13 @@ public class MailboxStatus {
return attemptsSinceSuccess;
}
/**
* Returns the mailbox's supported API versions.
*/
public List<MailboxVersion> getServerSupports() {
return serverSupports;
}
/**
* @return true if this status indicates a problem with the mailbox.
*/