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

Cleanup viewer onDelete #1380

Merged
merged 2 commits into from
Sep 21, 2022
Merged

Cleanup viewer onDelete #1380

merged 2 commits into from
Sep 21, 2022

Conversation

skjnldsv
Copy link
Member

Supersede #1365

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
@skjnldsv skjnldsv self-assigned this Sep 21, 2022
@skjnldsv skjnldsv added 3. to review Waiting for reviews bug Something isn't working labels Sep 21, 2022
@skjnldsv skjnldsv added this to the Nextcloud 25 milestone Sep 21, 2022
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
@skjnldsv skjnldsv merged commit 9e0059d into master Sep 21, 2022
@skjnldsv skjnldsv deleted the feat/cleanup branch September 21, 2022 10:56
@pulsejet
Copy link
Member

This doesn't solve my problem in #1365 completely. I need either a callback in my app when something is deleted or (the way I work around it right now) the list has to update even if a single file is deleted (then I can watch that). But the splice isn't called in this case with this change.

@skjnldsv
Copy link
Member Author

@pulsejet please use event

emit('files:file:deleted', { fileid })

@pulsejet
Copy link
Member

Ah, this didn't exist earlier. Thanks @skjnldsv!

@skjnldsv
Copy link
Member Author

Ah, this didn't exist earlier. Thanks @skjnldsv!

Npe, this is new :)
We should have done that for a while, this is a proper way to async notify other apps

@blizzz blizzz mentioned this pull request Sep 22, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants