Prevent duplicate messages on MUC join

Fixes #1414
This commit is contained in:
laszlovl 2019-02-06 13:06:34 +01:00 committed by JC Brand
parent c403708f76
commit 590d8769a9
3 changed files with 3 additions and 2 deletions

View File

@ -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)

2
dist/converse.js vendored
View File

@ -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) {

View File

@ -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));
}