Commit 07f82d6a authored by JC Brand's avatar JC Brand

Allow passing of more options to `auto_join_rooms`

parent 3817f471
......@@ -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
......
......@@ -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"',
......
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