cancel media attachment download task on note close

This commit is contained in:
ammarahm-ed
2021-10-04 10:24:59 +05:00
parent 0ccd123358
commit dd18a1bb5c

View File

@@ -241,6 +241,7 @@ const EditorHeader = () => {
};
const _onHardwareBackPress = async () => {
db.fs.cancel(getNote()?.id);
if (editing.currentlyEditing) {
await _onBackPress();
return true;