Don't store the `File` object in browserStorage
With the recent fixes in backbone.browserStorage, the 'file' attributes gets persisted to browserStorage before Converse tries to upload the file. The File object can't actually be serialized, so an empty map gets stored and then returned together with a 'change' event. Instead, store the file as a direct attribute on the message object. Fixes #1261
Showing
This diff is collapsed.
... | @@ -40,7 +40,7 @@ | ... | @@ -40,7 +40,7 @@ |
"awesomplete-avoid-xss": "^1.1.2", | "awesomplete-avoid-xss": "^1.1.2", | ||
"babel-loader": "^8.0.0", | "babel-loader": "^8.0.0", | ||
"backbone": "1.3.3", | "backbone": "1.3.3", | ||
"backbone.browserStorage": "0.0.4", | "backbone.browserStorage": "jcbrand/Backbone.browserStorage#03bfa13f68b71f97be361840adc5a5064f57b47e", | ||
"backbone.nativeview": "^0.3.3", | "backbone.nativeview": "^0.3.3", | ||
"backbone.overview": "^1.0.2", | "backbone.overview": "^1.0.2", | ||
"backbone.vdomview": "^1.0.1", | "backbone.vdomview": "^1.0.1", | ||
... | ... |
Please register or sign in to comment