Skip to content

Commit

Permalink
PM-9001 - Item with MP Reprompt does not prompt for MP when downloadi…
Browse files Browse the repository at this point in the history
…ng attachment (#764)
  • Loading branch information
phil-livefront authored Jul 26, 2024
1 parent 4712b00 commit 5d78b16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ enum ViewItemAction: Equatable {
switch self {
case .cardItemAction,
.customFieldVisibilityPressed,
.downloadAttachment,
.editPressed,
.morePressed,
.passwordVisibilityPressed:
true
case let .copyPressed(_, field):
field.requiresMasterPasswordReprompt
case .dismissPressed,
.downloadAttachment,
.passwordHistoryPressed,
.toastShown:
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ViewItemActionTests: BitwardenTestCase {

XCTAssertFalse(ViewItemAction.dismissPressed.requiresMasterPasswordReprompt)

XCTAssertFalse(ViewItemAction.downloadAttachment(.fixture()).requiresMasterPasswordReprompt)
XCTAssertTrue(ViewItemAction.downloadAttachment(.fixture()).requiresMasterPasswordReprompt)

XCTAssertTrue(ViewItemAction.editPressed.requiresMasterPasswordReprompt)

Expand Down

0 comments on commit 5d78b16

Please sign in to comment.