Commit 12af9d5c authored by JC Brand's avatar JC Brand

Tying some loose ends

parent 4c763708
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
// Module-level functions // Module-level functions
// ---------------------- // ----------------------
this.generateResource = () => `/converse.js-${Math.floor(Math.random()*139749825).toString()}`; this.generateResource = () => `/converse.js-${Math.floor(Math.random()*139749528).toString()}`;
this.sendCSI = function (stat) { this.sendCSI = function (stat) {
/* Send out a Chat Status Notification (XEP-0352) /* Send out a Chat Status Notification (XEP-0352)
......
...@@ -84,10 +84,8 @@ ...@@ -84,10 +84,8 @@
const messages = []; const messages = [];
const message_handler = _converse.connection.addHandler(function (message) { const message_handler = _converse.connection.addHandler(function (message) {
if (options.groupchat) { if (options.groupchat || message.getAttribute('from') !== options['with']) { // eslint-disable-line dot-notation
if (message.getAttribute('from') !== options['with']) { // eslint-disable-line dot-notation return true;
return true;
}
} }
const result = message.querySelector('result'); const result = message.querySelector('result');
if (!_.isNull(result) && result.getAttribute('queryid') === queryid) { if (!_.isNull(result) && result.getAttribute('queryid') === queryid) {
......
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
return; return;
} }
form.querySelector('input[type=submit]').classList.add('hidden'); form.querySelector('input[type=submit]').classList.add('hidden');
this.fetchRegistrationForm(domain); this.fetchRegistrationForm(domain.trim());
}, },
fetchRegistrationForm (domain_name) { fetchRegistrationForm (domain_name) {
......
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