mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
cancel media attachment download task on note close
This commit is contained in:
@@ -241,6 +241,7 @@ const EditorHeader = () => {
|
||||
};
|
||||
|
||||
const _onHardwareBackPress = async () => {
|
||||
db.fs.cancel(getNote()?.id);
|
||||
if (editing.currentlyEditing) {
|
||||
await _onBackPress();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user