Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Share/NCShareExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class NCShareExtension: UIViewController {
if let error {
extensionContext?.cancelRequest(withError: error)
} else {
self.extensionContext?.completeRequest(returningItems: self.extensionContext?.inputItems, completionHandler: nil)
extensionContext?.completeRequest(returningItems: extensionContext?.inputItems, completionHandler: nil)
}
}

Expand Down Expand Up @@ -410,11 +410,10 @@ extension NCShareExtension {
banner?.update(payload: LucidBannerPayload.Update(subtitle: error?.errorDescription, stage: .error), for: self.token)
}

if let banner, let token {
Task { @MainActor in
try? await Task.sleep(for: .seconds(2))
banner.dismiss()
}
Task { @MainActor in
try? await Task.sleep(for: .seconds(2))
banner?.dismiss()
extensionContext?.completeRequest(returningItems: extensionContext?.inputItems, completionHandler: nil)
}
}

Expand Down
Loading