瀏覽代碼

converse-muc: use minimized attr instead

JC Brand 6 年之前
父節點
當前提交
0d2c36dca6
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/headless/converse-muc.js

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

@@ -2170,9 +2170,6 @@ converse.plugins.add('converse-muc', {
                  */
                 create (jids, attrs={}) {
                     attrs = _.isString(attrs) ? {'nick': attrs} : (attrs || {});
-                    if (attrs.maximize === undefined) {
-                        attrs.maximize = false;
-                    }
                     if (!attrs.nick && _converse.muc_nickname_from_jid) {
                         attrs.nick = Strophe.getNodeFromJid(_converse.bare_jid);
                     }
@@ -2203,8 +2200,7 @@ converse.plugins.add('converse-muc', {
                  *     For a list of configuration values that can be passed in, refer to these values
                  *     in the [XEP-0045 MUC specification](https://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
                  *     The values should be named without the `muc#roomconfig_` prefix.
-                 * @param {boolean} [attrs.maximize] A boolean, indicating whether minimized rooms should also be
-                 *     maximized, when opened. Set to `false` by default.
+                 * @param {boolean} [attrs.minimized] A boolean, indicating whether the room should be opened minimized or not.
                  * @param {boolean} [attrs.bring_to_foreground] A boolean indicating whether the room should be
                  *     brought to the foreground and therefore replace the currently shown chat.
                  *     If there is no chat currently open, then this option is ineffective.