-
Notifications
You must be signed in to change notification settings - Fork 68
merge file activity settings into a single 'favorite changed' item #481
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
Conversation
80101e0 to
7a7cdf6
Compare
Signed-off-by: Robin Appelman <robin@icewind.nl>
7a7cdf6 to
a4e15e2
Compare
MorrisJobke
left a comment
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.
Tested and works 👍
| if ($this->currentUser->getUserIdentifier() !== '') { | ||
| $this->addNotificationsForFileAction($path, Files::TYPE_SHARE_CREATED, 'created_self', 'created_by'); | ||
| $this->addNotificationsForFileAction($path, 'created_self', 'created_by'); | ||
| } else { | ||
| $this->addNotificationsForFileAction($path, Files::TYPE_SHARE_CREATED, '', 'created_public'); | ||
| $this->addNotificationsForFileAction($path, '', 'created_public'); | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Store the update hook events | ||
| * | ||
| * @param string $path Path of the file that has been modified | ||
| */ | ||
| public function fileUpdate($path) { | ||
| $this->addNotificationsForFileAction($path, Files::TYPE_SHARE_CHANGED, 'changed_self', 'changed_by'); | ||
| $this->addNotificationsForFileAction($path, 'changed_self', 'changed_by'); | ||
| } | ||
|
|
||
| /** | ||
| * Store the delete hook events | ||
| * | ||
| * @param string $path Path of the file that has been deleted | ||
| */ | ||
| public function fileDelete($path) { | ||
| $this->addNotificationsForFileAction($path, Files::TYPE_SHARE_DELETED, 'deleted_self', 'deleted_by'); | ||
| $this->addNotificationsForFileAction($path, 'deleted_self', 'deleted_by'); |
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 breaks the non-monochrome activity icon handling across all clients, which is why I had pushed a revert on that in previous PRs.
see nextcloud/server#22205