inverse: Set more defaults in the plugin itself

This commit is contained in:
JC Brand 2017-06-13 21:40:06 +02:00
parent b178aef269
commit 651a5de315
3 changed files with 13 additions and 19 deletions

View File

@ -582,7 +582,7 @@ If set to ``true``, then don't show offline users.
hide_open_bookmarks
-------------------
* Default: ``false``
* Default: ``false`` (``true`` for inVerse).
This setting applies to the ``converse-bookmarks`` plugin and specfically the
list of bookmarks shown in the ``Rooms`` tab of the control box.
@ -961,7 +961,7 @@ Specifies whether chat state (online, dnd, away) HTML5 desktop notifications sho
show_controlbox_by_default
--------------------------
* Default: ``false``
* Default: ``false`` (``true`` for inVerse)
The "controlbox" refers to the special chatbox containing your contacts roster,
status widget, chatrooms and other controls.
@ -1064,7 +1064,7 @@ data.
sticky_controlbox
-----------------
* Default: ``false``
* Default: ``false`` (``true`` for inVerse).
If set to ``true``, the control box (which includes the login, registration,
contacts and rooms tabs) will not be closeable. It won't have a close button at
@ -1208,7 +1208,7 @@ support.
blacklisted_plugins
-------------------
* Default: ``[]``
* Default: ``[]`` (``['converse-minimize', 'converse-dragresize']`` for inVerse)
A list of plugin names that are blacklisted and will therefore not be
initialized once ``converse.initialize`` is called, even if the same plugin is

View File

@ -28,22 +28,10 @@
notify_all_room_messages: [
'discuss@conference.conversejs.org'
],
whitelisted_plugins: [
'converse-inverse',
'converse-roomslist',
'converse-singleton',
],
hide_open_bookmarks: true,
blacklisted_plugins: ['converse-minimize', 'converse-dragresize'],
chatview_avatar_width: 42,
chatview_avatar_height: 42,
whitelisted_plugins: ['converse-inverse'],
auto_reconnect: true,
bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
message_carbons: true,
message_archiving: 'always',
sticky_controlbox: true,
roster_groups: true,
show_controlbox_by_default: true,
debug: true
});
});

View File

@ -102,9 +102,15 @@
var _converse = this._converse;
this.updateSettings({
sticky_controlbox: true,
sounds_path: '/node_modules/converse.js/sounds/', // New default
blacklisted_plugins: ['converse-minimize', 'converse-dragresize'],
chatview_avatar_height: 42,
chatview_avatar_width: 42,
hide_open_bookmarks: true,
notification_icon: '/node_modules/converse.js/logo/conversejs128.png', // New default
show_controlbox_by_default: true,
sounds_path: '/node_modules/converse.js/sounds/', // New default
sticky_controlbox: true,
whitelisted_plugins: ['converse-roomslist', 'converse-singleton'],
});
_converse.isMessageToHiddenChat = function (message) {