Skip to content

Commit

Permalink
Merge pull request #1355 from nextcloud/backport/1353/stable30
Browse files Browse the repository at this point in the history
[stable30] fix: Add app hint for whiteboard
  • Loading branch information
juliushaertl authored Sep 12, 2024
2 parents 4b9e116 + 3e50af8 commit 6854a35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Notification/AppHint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}
Expand Down
6 changes: 6 additions & 0 deletions lib/Notification/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6854a35

Please sign in to comment.