Commit 15f6649a authored by JC Brand's avatar JC Brand

Bugfix. OTR meta-messages were being shown in HTML5 notifications

parent 8c3c70c1
...@@ -9,8 +9,9 @@ ...@@ -9,8 +9,9 @@
- sinon 2.1.0 - sinon 2.1.0
- eslint 3.19.0 - eslint 3.19.0
- Bugfix. MUC user's nickname wasn't being shown in HTML5 notification messages. [jcbrand] - Bugfix: MUC user's nickname wasn't being shown in HTML5 notification messages. [jcbrand]
- CSS fix. Icon lock wasn't showing. [jcbrand] - Bugfix: OTR meta-messages were being shown in HTML5 notifications. [jcbrand]
- CSS fix: Icon lock wasn't showing. [jcbrand]
- #842 Persistent muc room creation not working [jcbrand] - #842 Persistent muc room creation not working [jcbrand]
- #849 `TypeError: _converse.i18n.locale_data is undefined` when reconnecting. [jcbrand] - #849 `TypeError: _converse.i18n.locale_data is undefined` when reconnecting. [jcbrand]
......
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
isOTRMessage: function (message) { isOTRMessage: function (message) {
var body = message.querySelector('body'), var body = message.querySelector('body'),
text = (!_.isNull(body) ? body.textNode : undefined); text = (!_.isNull(body) ? body.textContent: undefined);
return text && !!text.match(/^\?OTR/); return text && !!text.match(/^\?OTR/);
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment