Skip to content

Cleanup viewer onDelete - #1380

Merged
skjnldsv merged 2 commits into
masterfrom
feat/cleanup
Sep 21, 2022
Merged

Cleanup viewer onDelete#1380
skjnldsv merged 2 commits into
masterfrom
feat/cleanup

Conversation

@skjnldsv

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

@pulsejet please use event

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

@pulsejet

Copy link
Copy Markdown
Member

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

@skjnldsv

Copy link
Copy Markdown
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
susnux pushed a commit that referenced this pull request May 16, 2026
susnux pushed a commit that referenced this pull request May 16, 2026
susnux pushed a commit that referenced this pull request May 16, 2026
susnux pushed a commit that referenced this pull request May 16, 2026
susnux pushed a commit that referenced this pull request May 16, 2026
susnux pushed a commit that referenced this pull request May 16, 2026
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