mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
code cleanup
This commit is contained in:
+3
-1
@@ -269,10 +269,12 @@ class NotifiableEventResolver @Inject constructor(
|
|||||||
return fileResult
|
return fileResult
|
||||||
.onFailure {
|
.onFailure {
|
||||||
Timber.tag(loggerTag.value).e(it, "Failed to download image for notification")
|
Timber.tag(loggerTag.value).e(it, "Failed to download image for notification")
|
||||||
}.getOrNull()?.let { mediaFile ->
|
}
|
||||||
|
.map { mediaFile ->
|
||||||
val authority = "${context.packageName}.notifications.fileprovider"
|
val authority = "${context.packageName}.notifications.fileprovider"
|
||||||
FileProvider.getUriForFile(context, authority, mediaFile)
|
FileProvider.getUriForFile(context, authority, mediaFile)
|
||||||
}
|
}
|
||||||
|
.getOrNull()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user