Switch from an always returning the notification content approach at every step to passing it in as mutable.

This commit is contained in:
Stefan Ceriu
2025-04-17 13:53:07 +03:00
committed by Stefan Ceriu
parent c33a164354
commit f71e5facb8
2 changed files with 50 additions and 63 deletions
@@ -125,9 +125,9 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
case .processedShouldDiscard, .unsupportedShouldDiscard:
discardNotification()
case .shouldDisplay:
notificationContent = await notificationContentBuilder.process(notificationContent: notificationContent,
notificationItem: notificationItemProxy,
mediaProvider: userSession.mediaProvider)
await notificationContentBuilder.process(notificationContent: &notificationContent,
notificationItem: notificationItemProxy,
mediaProvider: userSession.mediaProvider)
deliverNotification()
}