Skip to content

Commit 5da0cf5

Browse files
fix
Signed-off-by: Marino Faggiana <[email protected]>
1 parent 910e10e commit 5da0cf5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

iOSClient/Networking/E2EE/NCNetworkingE2EEUpload.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,13 @@ class NCNetworkingE2EEUpload: NSObject {
3737

3838
// BANNER ENCRYPTION
3939
//
40-
let maxWidth: CGFloat = UIDevice.current.userInterfaceIdiom == .pad
41-
? 450
42-
: min(UIScreen.main.bounds.width, UIScreen.main.bounds.height) - 80
4340
bannerToken = LucidBanner.shared.show(
4441
title: NSLocalizedString("_wait_file_encryption_", comment: ""),
4542
subtitle: NSLocalizedString("_e2ee_upload_tip_", comment: ""),
4643
systemImage: "lock.circle.fill",
47-
maxWidth: maxWidth,
4844
vPosition: .bottom,
4945
hAlignment: .left,
5046
verticalMargin: 55,
51-
stage: "wait",
5247
onTapWithContext: { _, _, _ in
5348
self.currentUploadTask?.cancel()
5449
self.request?.cancel()

iOSClient/Networking/NCNetworkingProcess.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,6 @@ actor NCNetworkingProcess {
350350

351351
@MainActor
352352
func uploadChunk(metadata: tableMetadata) async {
353-
let maxWidth: CGFloat = UIDevice.current.userInterfaceIdiom == .pad
354-
? 450
355-
: min(UIScreen.main.bounds.width, UIScreen.main.bounds.height) - 80
356353
var currentUploadTask: Task<(account: String, file: NKFile?, error: NKError), Never>?
357354

358355
let token = LucidBanner.shared.show(
@@ -361,11 +358,9 @@ actor NCNetworkingProcess {
361358
footnote: "( " + NSLocalizedString("_tap_to_cancel_", comment: "") + " )",
362359
systemImage: "gearshape.arrow.triangle.2.circlepath",
363360
imageAnimation: .rotate,
364-
maxWidth: maxWidth,
365361
vPosition: .bottom,
366362
hAlignment: .left,
367363
verticalMargin: 55,
368-
stage: "wait",
369364
onTapWithContext: { _, _, _ in
370365
currentUploadTask?.cancel()
371366
}) { state in

0 commit comments

Comments
 (0)