Log errors when failing to save a message to storage
This commit is contained in:
parent
b5783c0668
commit
02a9126ab6
@ -1012,7 +1012,7 @@ converse.plugins.add('converse-chat', {
|
||||
* @method _converse.ChatBox#createMessage
|
||||
*/
|
||||
createMessage (attrs, options) {
|
||||
return this.messages.create(attrs, Object.assign({'wait': true, 'promise':true}, options));
|
||||
return this.messages.create(attrs, Object.assign({'wait': true, 'promise':true}, options)).catch(e => log.error(e));
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -36,7 +36,7 @@
|
||||
},
|
||||
"gitHead": "9641dcdc820e029b05930479c242d2b707bbe8e2",
|
||||
"devDependencies": {
|
||||
"@converse/skeletor": "0.0.2",
|
||||
"@converse/skeletor": "conversejs/skeletor#0f819a4f3ea013b3a48c3fcb600c3138559e1c0d",
|
||||
"filesize": "^6.1.0",
|
||||
"localforage": "^1.7.3",
|
||||
"lodash-es": "^4.17.15",
|
||||
|
Loading…
Reference in New Issue
Block a user