Skip to content
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

[stable29] fix: get rid of denied notification when accept #48752

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Oct 17, 2024

Backport of #48734

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

3rdparty Outdated Show resolved Hide resolved
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>

(cherry picked from commit 73b34bb)
@nickvergessen nickvergessen marked this pull request as ready for review October 17, 2024 07:07
- do not create 'denied' notification if bg job exists

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
(cherry picked from commit 5be7641)
- this reverts 1e8048a

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
(cherry picked from commit 6e7c35d)
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

@@ -277,6 +287,9 @@ public function dismissNotification(INotification $notification): void {
if ($notification->getApp() !== 'files') {
throw new \InvalidArgumentException('Unhandled app');
}
if ($notification->getSubject() !== 'transferownershipRequest') {
throw new \InvalidArgumentException('Unhandled notification type');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed from UnknownNotificationException in original PR

@Antreesy Antreesy merged commit 93e4d2d into stable29 Oct 17, 2024
177 checks passed
@Antreesy Antreesy deleted the backport/48734/stable29 branch October 17, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants