Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Aug 28, 2024
1 parent 7cefdff commit 94c57c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Share/NCShareExtension+DataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extension NCShareExtension: UICollectionViewDelegate {
showAlert(title: "_info_", description: "_e2e_goto_settings_for_enable_")
}

if let fileNameError = FileNameValidator.shared.checkFileName(metadata.fileNameView, account: activeTableAccount.account) {
if let fileNameError = FileNameValidator.shared.checkFileName(metadata.fileNameView, account: session.account) {
present(UIAlertController.warning(message: "\(fileNameError.errorDescription) \(NSLocalizedString("_please_rename_file_", comment: ""))"), animated: true)
return
}
Expand Down
2 changes: 1 addition & 1 deletion Share/NCShareExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ extension NCShareExtension {

var conflicts: [tableMetadata] = []
for fileName in filesName {
if let fileNameError = FileNameValidator.shared.checkFileName(fileName, account: activeTableAccount.account) {
if let fileNameError = FileNameValidator.shared.checkFileName(fileName, account: session.account) {
present(UIAlertController.warning(message: "\(fileNameError.errorDescription) \(NSLocalizedString("_please_rename_file_", comment: ""))"), animated: true)

continue
Expand Down

0 comments on commit 94c57c8

Please sign in to comment.