diff --git a/src/headless/core.js b/src/headless/core.js index d9f23d685..5f476d0b7 100644 --- a/src/headless/core.js +++ b/src/headless/core.js @@ -1563,7 +1563,11 @@ Object.assign(converse, { initPlugins(); registerGlobalEventHandlers(); - !History.started && _converse.router.history.start(); + try { + !History.started && _converse.router.history.start(); + } catch (e) { + log.error(e); + } if (api.settings.get("idle_presence_timeout") > 0) { api.listen.on('addClientFeatures', () => api.disco.own.features.add(Strophe.NS.IDLE)); diff --git a/src/plugins/chatview/utils.js b/src/plugins/chatview/utils.js index 79a798931..62a90c4a4 100644 --- a/src/plugins/chatview/utils.js +++ b/src/plugins/chatview/utils.js @@ -24,7 +24,7 @@ export async function getHeadingStandaloneButton (promise_or_data) { `; } -async function clearMessages (chat) { +export async function clearMessages (chat) { const result = confirm(__('Are you sure you want to clear the messages from this conversation?')); if (result === true) { await chat.clearMessages();