Commit 590d8769 authored by laszlovl's avatar laszlovl Committed by JC Brand

Prevent duplicate messages on MUC join

Fixes #1414
parent c403708f
......@@ -12,6 +12,7 @@
- #1422 Resurrect the `muc_show_join_leave` option
- #1412 muc moderator commands can be disabled selectively by config
- #1413 fix moderator commands that change affiliation
- #1414 Prevent duplicate messages on MUC join
## 4.1.0 (2019-01-11)
......
......@@ -66163,7 +66163,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc
}).c("x", {
'xmlns': Strophe.NS.MUC
}).c("history", {
'maxstanzas': this.get('mam_enabled') ? 0 : _converse.muc_history_max_stanzas
'maxstanzas': this.features.get('mam_enabled') ? 0 : _converse.muc_history_max_stanzas
}).up();
if (password) {
......@@ -293,7 +293,7 @@ converse.plugins.add('converse-muc', {
'from': _converse.connection.jid,
'to': this.getRoomJIDAndNick(nick)
}).c("x", {'xmlns': Strophe.NS.MUC})
.c("history", {'maxstanzas': this.get('mam_enabled') ? 0 : _converse.muc_history_max_stanzas}).up();
.c("history", {'maxstanzas': this.features.get('mam_enabled') ? 0 : _converse.muc_history_max_stanzas}).up();
if (password) {
stanza.cnode(Strophe.xmlElement("password", [], password));
}
......
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