JC Brand 6 年之前
父節點
當前提交
d9093c09ee
共有 3 個文件被更改,包括 5 次插入4 次删除
  1. 3 2
      CHANGES.md
  2. 1 1
      dist/converse.js
  3. 1 1
      src/headless/converse-chatboxes.js

+ 3 - 2
CHANGES.md

@@ -2,14 +2,15 @@
 
 
 ## 4.0.5 (Unreleased)
 ## 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
 - #1188 Feature request: drag and drop file to HTTP Upload
 - #1268 Switch from SASS variables to CSS custom properties
 - #1268 Switch from SASS variables to CSS custom properties
 - #1278 Replace the default avatar with a SVG version
 - #1278 Replace the default avatar with a SVG version
 - #1033 Setting show_send_button to true didn't work
 - #1033 Setting show_send_button to true didn't work
 - #1306 added option `notification_delay`
 - #1306 added option `notification_delay`
 - #1305 added value 'all' for 'show_desktop_notifications' to notifiy even if converse.js is open
 - #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)
 ## 4.0.4 (2018-10-29)
 
 

+ 1 - 1
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.
           '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);
         const chatbox = this.getChatBox(contact_jid, attrs, has_body);
 
 
         if (chatbox && !chatbox.handleMessageCorrection(stanza)) {
         if (chatbox && !chatbox.handleMessageCorrection(stanza)) {

+ 1 - 1
src/headless/converse-chatboxes.js

@@ -730,7 +730,7 @@ converse.plugins.add('converse-chatboxes', {
                     'fullname': _.get(_converse.api.contacts.get(contact_jid), 'attributes.fullname')
                     '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.
                 // 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);
                 const chatbox = this.getChatBox(contact_jid, attrs, has_body);
                 if (chatbox && !chatbox.handleMessageCorrection(stanza)) {
                 if (chatbox && !chatbox.handleMessageCorrection(stanza)) {
                     const msgid = stanza.getAttribute('id'),
                     const msgid = stanza.getAttribute('id'),