mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-23 00:44:26 +01:00
Configurable cache dir (#567)
* Add a configurable cache dir * Fix UDL field position
This commit is contained in:
@@ -20,12 +20,16 @@ open class SDKNotificationService: UNNotificationServiceExtension {
|
||||
self.contentHandler = contentHandler
|
||||
self.bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
|
||||
|
||||
guard let connectRequest = self.getConnectRequest() else {
|
||||
guard var connectRequest = self.getConnectRequest() else {
|
||||
if let content = bestAttemptContent {
|
||||
contentHandler(content)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if connectRequest.config.cacheDir == nil {
|
||||
connectRequest.config.cacheDir = URL(filePath: connectRequest.config.workingDir).appendingPathComponent("pluginCache").path
|
||||
}
|
||||
|
||||
if let currentTask = self.getTaskFromNotification() {
|
||||
self.currentTask = currentTask
|
||||
|
||||
Reference in New Issue
Block a user