Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions BitwardenShared/Core/Platform/Models/Enum/EventType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ public enum EventType: Int, Codable, Sendable {
case organizationUpdated = 1600
case organizationPurgedVault = 1601
case organizationClientExportedVault = 1602

case organizationItemOrganizationAccepted = 1618
case organizationItemOrganizationDeclined = 1619
Comment on lines +50 to +51
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The case names contain redundant "Organization" repetition. Following the existing naming patterns in this enum (e.g., organizationUserInvited, organizationUpdated, organizationPurgedVault), these should be named organizationItemAccepted and organizationItemDeclined instead of organizationItemOrganizationAccepted and organizationItemOrganizationDeclined. The extra "Organization" in the middle makes the names unnecessarily verbose and inconsistent with the established conventions.

Suggested change
case organizationItemOrganizationAccepted = 1618
case organizationItemOrganizationDeclined = 1619
case organizationItemAccepted = 1618
case organizationItemDeclined = 1619

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The naming is following the server name convention for consistency.

}