BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.07k stars 1.47k forks source link

fix unwanted deletion of attachments #3639

Closed daiyam closed 3 years ago

daiyam commented 3 years ago

Description

This change fixes the unwanted deletions of attachments.

The issue is due to that a note can be changed between the editor has lost its focus and when the function removing unused attachments is run. The delay of 30s between the focus lost and cleanup was introduced for #3103.

How to reproduce the issue:

The fix: Every time that the note is changed, the call to the cleanup function is cancelled.

Issue fixed

Type of changes

Checklist:

daiyam commented 3 years ago

@ZeroX-DG @Rokt33r I hope this fix can be included in the next version.