Skip to content

Commit

Permalink
- update ios-sdk
Browse files Browse the repository at this point in the history
- allow redacting item names in Move and Sharing operations (QA finding fix)
  • Loading branch information
felix-schwarz committed Jan 23, 2025
1 parent 9df71cf commit 6f41013
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ios-sdk
Submodule ios-sdk updated 0 files
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class MoveAction : Action {
if items.count > 1 {
titleText = OCLocalizedFormat("Move {{itemCount}} items", ["itemCount" : "\(items.count)"])
} else {
titleText = OCLocalizedFormat("Move \"{{itemName}}\"", ["itemName" : items.first?.name ?? "?"])
titleText = OCLocalizedFormat("Move \"{{itemName}}\"", ["itemName" : items.first?.name?.redacted() ?? "?"])
}

let locationPicker = ClientLocationPicker(location: startLocation, selectButtonTitle: OCLocalizedString("Move here", nil), headerTitle: titleText, headerSubTitle: OCLocalizedString("Select target.", nil), avoidConflictsWith: items, choiceHandler: { (selectedDirectoryItem, location, _, cancelled) in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,12 @@ extension OCItem: UniversalItemListCellContentProvider {
content.iconDisabled = isPlaceholder

// Title
if let name = self.name {
content.title = isFile ? .file(name: name) : .folder(name: name)
if let name {
var displayName = name
if configuration?.style.type == .header {
displayName = name.redacted()
}
content.title = isFile ? .file(name: displayName) : .folder(name: displayName)
}

// Details
Expand Down

0 comments on commit 6f41013

Please sign in to comment.