diff --git a/lib/Notification/AppHint.php b/lib/Notification/AppHint.php index 13bc892e..0f53c238 100644 --- a/lib/Notification/AppHint.php +++ b/lib/Notification/AppHint.php @@ -28,7 +28,7 @@ class AppHint { /** @var string */ private $userId; - public const APP_HINT_VERSION = '18'; + public const APP_HINT_VERSION = '19'; public function __construct(INotificationManager $notificationManager, IGroupManager $groupManager, IAppManager $appManager, IConfig $config, $userId) { $this->notificationManager = $notificationManager; @@ -45,6 +45,7 @@ public function sendAppHintNotifications(): void { $this->sendNotification('forms', $this->userId); $this->sendNotification('deck', $this->userId); $this->sendNotification('tasks', $this->userId); + $this->sendNotification('whiteboard', $this->userId); $this->config->setUserValue($this->userId, 'firstrunwizard', 'apphint', self::APP_HINT_VERSION); } } diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 3b378c62..b6b33c0d 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -100,6 +100,7 @@ public function prepare(INotification $notification, string $languageCode): INot case 'apphint-notes': case 'apphint-recognize': case 'apphint-groupfolders': + case 'apphint-whiteboard': $app = $notification->getObjectId(); return $this->setAppHintDetails($notification, $languageCode, $app); default: @@ -193,6 +194,11 @@ protected function setAppHintDetails(INotification $notification, $languageCode, $notification->setParsedMessage($l->t('Admin-configured folders shared by everyone in a group.')); $appLink = '/files/groupfolders'; break; + case 'whiteboard': + $notification->setParsedSubject($l->t('App recommendation: Whiteboard')); + $notification->setParsedMessage($l->t('Create and share whiteboards with others and collaborate in real-time.')); + $appLink = '/office/whiteboard'; + break; } $notification ->setLink($this->url->linkToRouteAbsolute('settings.AppSettings.viewApps') . $appLink)