Skip to content

Conversation

@Ambrdctr
Copy link
Contributor

No description provided.

@sonarqubecloud
Copy link

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes obsolete password validation properties from the Mailbox model following the introduction of multi-password support. The properties isPasswordValid and isValidInLDAP are no longer needed, along with their derived computed properties isConsideredLocked and isAvailable.

Key Changes:

  • Removed password-related properties from the Mailbox model and simplified availability logic to use only isLocked
  • Updated all mailbox availability checks throughout the codebase to use the simplified !isLocked logic
  • Removed UI components and localized strings related to password-blocked mailboxes

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
MailCore/Models/Mailbox.swift Removed isPasswordValid, isValidInLDAP persisted properties and isConsideredLocked, isAvailable computed properties; updated initializer, decoder, and CodingKeys
MailCore/Cache/MailboxInfosManager/MailboxInfosManager.swift Incremented database schema version from 15 to 16 for the property removal
MailCore/Cache/AccountManager/AccountManager.swift Replaced all isAvailable checks with !isLocked throughout mailbox filtering and selection logic
MailCore/Cache/RootViewState.swift Updated unavailable mailboxes check to use isLocked instead of isAvailable
MailCoreUI/Helpers/PreviewHelper.swift Removed obsolete isPasswordValid and isValidInLDAP parameters from sample mailbox creation
Mail/Components/UnavailableMailboxListView.swift Removed password-blocked mailboxes section and related filtering logic
MailResources/Localizable/*.lproj/Localizable.stringsdict Removed blockedPasswordTitle localized string entries across all language files (en, de, es, fr, it)

@PhilippeWeidmann PhilippeWeidmann merged commit b408dc7 into master Dec 17, 2025
17 checks passed
@PhilippeWeidmann PhilippeWeidmann deleted the fix/multi-password branch December 17, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants