Переглянути джерело

Prevent duplicate messages on MUC join

Fixes #1414
laszlovl 6 роки тому
батько
коміт
590d8769a9
3 змінених файлів з 3 додано та 2 видалено
  1. 1 0
      CHANGES.md
  2. 1 1
      dist/converse.js
  3. 1 1
      src/headless/converse-muc.js

+ 1 - 0
CHANGES.md

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

+ 1 - 1
dist/converse.js

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

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

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