Allow passing of more options to auto_join_rooms

This commit is contained in:
JC Brand 2019-07-22 15:10:54 +02:00
parent 3817f471a0
commit 07f82d6a0d
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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"',