Ability to disable messenger at a global level

This commit is contained in:
yflory
2018-09-12 14:51:37 +02:00
parent 82cca49aef
commit 621fc9a897
2 changed files with 12 additions and 0 deletions

View File

@@ -426,6 +426,7 @@ Messenger, MessengerUI, Messages) {
if (!config.metadataMgr) {
throw new Error("You must provide a `metadataMgr` to display the chat");
}
if (Config.availablePadTypes.indexOf('contacts') === -1) { return; }
var $content = $('<div>', {'class': 'cp-toolbar-chat-drawer'});
$content.on('drop dragover', function (e) {
e.preventDefault();