From 02a9126ab6405cdfab5dcdbf4b71d4ac3adebcf5 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 30 Sep 2020 18:00:16 +0200 Subject: [PATCH] Log errors when failing to save a message to storage --- src/headless/converse-chat.js | 2 +- src/headless/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/headless/converse-chat.js b/src/headless/converse-chat.js index 10c502426..3f810b9d9 100644 --- a/src/headless/converse-chat.js +++ b/src/headless/converse-chat.js @@ -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)); }, /** diff --git a/src/headless/package.json b/src/headless/package.json index 11124a1fb..50c81fb29 100644 --- a/src/headless/package.json +++ b/src/headless/package.json @@ -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",