Skip to content

Conversation

@skjnldsv
Copy link
Member

Supersede #1365

Signed-off-by: John Molakvoæ <[email protected]>
@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æ <[email protected]>
@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.

3 participants