Skip to content

Conversation

@icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Aug 11, 2020

@icewind1991 icewind1991 force-pushed the activity-settings-cleanup branch 2 times, most recently from 80101e0 to 7a7cdf6 Compare August 12, 2020 02:54
Signed-off-by: Robin Appelman <robin@icewind.nl>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@MorrisJobke MorrisJobke merged commit 2dc19ad into master Aug 13, 2020
@MorrisJobke MorrisJobke deleted the activity-settings-cleanup branch August 13, 2020 06:15
Comment on lines 155 to +177
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');
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants