Browse Source

code cleanup

pull/1992/head
Benoit Marty 9 months ago
parent
commit
05d9e64b86
  1. 4
      libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/NotifiableEventResolver.kt

4
libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/NotifiableEventResolver.kt

@ -269,10 +269,12 @@ class NotifiableEventResolver @Inject constructor( @@ -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()
}
}

Loading…
Cancel
Save