|
|
@ -22,6 +22,7 @@ use OCP\Notification\IncompleteParsedNotificationException; |
|
|
use OCP\Notification\INotification; |
|
|
use OCP\Notification\INotification; |
|
|
use OCP\Notification\INotifier; |
|
|
use OCP\Notification\INotifier; |
|
|
use OCP\Notification\IPreloadableNotifier; |
|
|
use OCP\Notification\IPreloadableNotifier; |
|
|
|
|
|
use OCP\Notification\NotificationPreloadReason; |
|
|
use OCP\Notification\UnknownNotificationException; |
|
|
use OCP\Notification\UnknownNotificationException; |
|
|
use OCP\RichObjectStrings\IRichTextFormatter; |
|
|
use OCP\RichObjectStrings\IRichTextFormatter; |
|
|
use OCP\RichObjectStrings\IValidator; |
|
|
use OCP\RichObjectStrings\IValidator; |
|
|
@ -391,14 +392,18 @@ class Manager implements IManager { |
|
|
return $notification; |
|
|
return $notification; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function preloadDataForParsing(array $notifications, string $languageCode): void { |
|
|
|
|
|
|
|
|
public function preloadDataForParsing( |
|
|
|
|
|
array $notifications, |
|
|
|
|
|
string $languageCode, |
|
|
|
|
|
NotificationPreloadReason $reason, |
|
|
|
|
|
): void { |
|
|
$notifiers = $this->getNotifiers(); |
|
|
$notifiers = $this->getNotifiers(); |
|
|
foreach ($notifiers as $notifier) { |
|
|
foreach ($notifiers as $notifier) { |
|
|
if (!($notifier instanceof IPreloadableNotifier)) { |
|
|
if (!($notifier instanceof IPreloadableNotifier)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$notifier->preloadDataForParsing($notifications, $languageCode); |
|
|
|
|
|
|
|
|
$notifier->preloadDataForParsing($notifications, $languageCode, $reason); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|