Allow passing of more options to auto_join_rooms
This commit is contained in:
parent
3817f471a0
commit
07f82d6a0d
|
@ -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"',
|
||||
|
|
Loading…
Reference in New Issue
Block a user