浏览代码

Allow passing of more options to `auto_join_rooms`

JC Brand 6 年之前
父节点
当前提交
07f82d6a0d
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      docs/source/configuration.rst
  2. 1 1
      src/headless/converse-muc.js

+ 2 - 2
docs/source/configuration.rst

@@ -384,11 +384,11 @@ automatically joined once the user has logged in.
 
 You can either specify a simple list of room JIDs, in which case your nickname
 will be taken from your JID, or you can specify a list of maps, where each map
-specifies the room's JID and the nickname that should be used.
+specifies the room's JID and other options.
 
 For example::
 
-    `[{'jid': 'room@example.org', 'nick': 'WizardKing69' }]`
+    `[{'jid': 'room@example.org', 'nick': 'WizardKing69', 'minimized': true }]`
 
 
 blacklisted_plugins

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

@@ -2052,7 +2052,7 @@ converse.plugins.add('converse-muc', {
                 if (_.isString(groupchat)) {
                     _converse.api.rooms.open(groupchat);
                 } else if (_.isObject(groupchat)) {
-                    _converse.api.rooms.open(groupchat.jid, groupchat.nick);
+                    _converse.api.rooms.open(groupchat.jid, groupchat);
                 } else {
                     _converse.log(
                         'Invalid groupchat criteria specified for "auto_join_rooms"',