diff --git a/CHANGES.md b/CHANGES.md index 89461da1c..c449c4f99 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,14 +2,15 @@ ## 4.0.5 (Unreleased) -- `FATAL: TypeError: Cannot read property 'extend' of undefined` when using `embedded` view mode. -- default paths in converse-notifications.js are now relative +- Error `FATAL: TypeError: Cannot read property 'extend' of undefined` when using `embedded` view mode. +- Default paths in converse-notifications.js are now relative - #1188 Feature request: drag and drop file to HTTP Upload - #1268 Switch from SASS variables to CSS custom properties - #1278 Replace the default avatar with a SVG version - #1033 Setting show_send_button to true didn't work - #1306 added option `notification_delay` - #1305 added value 'all' for 'show_desktop_notifications' to notifiy even if converse.js is open +- #1312 Error `unrecognized expression` in Safari ## 4.0.4 (2018-10-29) diff --git a/dist/converse.js b/dist/converse.js index 29a6b215a..78700f58c 100644 --- a/dist/converse.js +++ b/dist/converse.js @@ -71331,7 +71331,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha 'fullname': _.get(_converse.api.contacts.get(contact_jid), 'attributes.fullname') // Get chat box, but only create a new one when the message has a body. }; - const has_body = sizzle(`body, encrypted[xmlns="${Strophe.NS.OMEMO}`).length > 0; + const has_body = sizzle(`body, encrypted[xmlns="${Strophe.NS.OMEMO}"]`).length > 0; const chatbox = this.getChatBox(contact_jid, attrs, has_body); if (chatbox && !chatbox.handleMessageCorrection(stanza)) { diff --git a/src/headless/converse-chatboxes.js b/src/headless/converse-chatboxes.js index 349e9f57c..992382046 100644 --- a/src/headless/converse-chatboxes.js +++ b/src/headless/converse-chatboxes.js @@ -730,7 +730,7 @@ converse.plugins.add('converse-chatboxes', { 'fullname': _.get(_converse.api.contacts.get(contact_jid), 'attributes.fullname') } // Get chat box, but only create a new one when the message has a body. - const has_body = sizzle(`body, encrypted[xmlns="${Strophe.NS.OMEMO}`).length > 0; + const has_body = sizzle(`body, encrypted[xmlns="${Strophe.NS.OMEMO}"]`).length > 0; const chatbox = this.getChatBox(contact_jid, attrs, has_body); if (chatbox && !chatbox.handleMessageCorrection(stanza)) { const msgid = stanza.getAttribute('id'),