config = $config; $this->userManager = $userManager; } public function getName() { return 'Show a hint about the new editor to existing users'; } public function run(IOutput $output) { $appVersion = $this->config->getAppValue('notes', 'installed_version'); if (!$appVersion || version_compare($appVersion, '4.7.0') !== -1) { return; } $this->userManager->callForSeenUsers(function (IUser $user) { if ($this->config->getUserValue($user->getUID(), Application::APP_ID, 'notesLastViewedNote', '') === '') { return; } $this->config->setUserValue($user->getUID(), Application::APP_ID, 'editorHint', 'yes'); }); } }