-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable30] fix(flow_notifications): Improve app loading by checking if notificat… #230
Conversation
2cb0873
to
09a8573
Compare
…ions app is not installed and enabled when registering the app Signed-off-by: Faisal Alghamdi <falghamdi125@gmail.com>
09a8573
to
78d9732
Compare
/backport to stable29 |
The backport to # Switch to the target branch and update it
git checkout stable29
git pull origin stable29
# Create the new backport branch
git checkout -b backport/230/stable29
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 78d97320
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/230/stable29 Error: No changes found in backport branch Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
) { | ||
} | ||
|
||
public function handle(Event $event): void { | ||
if (!$event instanceof RegisterOperationsEvent) { | ||
return; | ||
} elseif (!$this->appManager->isEnabledForUser('notifications')) { | ||
$this->logger->error('Failed to register `flow_notifications` app. This could happen due to the `notifications` app isn\'t installed or enabled.', ['app' => 'flow_notifications']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->logger->error('Failed to register `flow_notifications` app. This could happen due to the `notifications` app not being installed or enabled.', ['app' => 'flow_notifications']);
🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@falghamdi125 he has a point there ^
Backport of #227
Warning, This backport's changes differ from the original and might be incomplete⚠️
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.