code cleanup

This commit is contained in:
Benoit Marty
2023-12-11 16:51:42 +01:00
parent 2de2d14ad0
commit cb694d537f

View File

@@ -269,10 +269,12 @@ class NotifiableEventResolver @Inject constructor(
return fileResult
.onFailure {
Timber.tag(loggerTag.value).e(it, "Failed to download image for notification")
}.getOrNull()?.let { mediaFile ->
}
.map { mediaFile ->
val authority = "${context.packageName}.notifications.fileprovider"
FileProvider.getUriForFile(context, authority, mediaFile)
}
.getOrNull()
}
}