Clean-up vectors upon deleting a file from Data Bank

This commit is contained in:
Cohee
2024-04-18 23:07:16 +03:00
parent 8434f6e6cf
commit 2eafa2a212
3 changed files with 36 additions and 1 deletions

View File

@ -558,6 +558,7 @@ async function deleteFileFromServer(url) {
throw new Error(error);
}
await eventSource.emit(event_types.FILE_ATTACHMENT_DELETED, url);
return true;
} catch (error) {
toastr.error(String(error), 'Could not delete file');