Move file creation to serviceworker to prevent loading everything into RAM

This commit is contained in:
schlagmichdoch 2024-02-07 04:11:56 +01:00
parent ef3c338dad
commit 5ee8bb871e
3 changed files with 135 additions and 3 deletions

View file

@ -1143,6 +1143,8 @@ class ReceiveFileDialog extends ReceiveDialog {
navigator.share({files: files})
.catch(err => {
Logger.error(err);
// Todo: tidy up, setDownloadButton instead and show warning to user
// Differentiate: "File too big to be shared. It can be downloaded instead." and "Error while sharing. It can be downloaded instead."
});
// Prevent clicking the button multiple times