Notification Placeholder Image Caching (#1248)

* placeholder image caching

* code improvement

* code is now clearer
This commit is contained in:
Mauro
2023-07-05 14:28:45 +02:00
committed by GitHub
parent d15d0e0070
commit 29d90dd29e
4 changed files with 47 additions and 16 deletions
@@ -98,7 +98,7 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
// After the first processing, update the modified content
modifiedContent = try await itemProxy.process(mediaProvider: nil)
guard itemProxy.requiresMediaProvider else {
guard itemProxy.hasMedia else {
MXLog.info("\(tag) no media needed")
// We've processed the item and no media operations needed, so no need to go further