Skip to content

Commit

Permalink
Fixed bug when attachment would be disabled after opening with navbar…
Browse files Browse the repository at this point in the history
… button (#1036)
  • Loading branch information
michalrentka authored Dec 3, 2024
1 parent b101f30 commit 1d1b6f7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ final class ItemDetailViewController: UIViewController {
}
}

if state.attachmentToOpen == nil {
// Reset this flag in case the attachment has been opened already (happens when attachment was already downloaded, this is set to true when trying to open, but is not set to false when
// it opens without download).
downloadingViaNavigationBar = false
}

/// Updates navigation bar with appropriate buttons based on editing state.
/// - parameter isEditing: Current editing state of tableView.
func setNavigationBarButtons(to state: ItemDetailState) {
Expand Down

0 comments on commit 1d1b6f7

Please sign in to comment.