• JC Brand's avatar
    Don't store the `File` object in browserStorage · e0f06176
    JC Brand authored
    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
    e0f06176
converse-message-view.js 10.4 KB