make userlist change notifications configurable

This commit is contained in:
ansuz 2017-10-24 17:29:58 +02:00
parent 027b9fa383
commit 69f9a7ebf3
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ define(function() {
* You can change their duration here (measured in milliseconds)
*/
config.notificationTimeout = 5000;
config.disableUserlistNotifications = false;
config.enablePinning = true;

View File

@ -886,6 +886,7 @@ define([
// type : 1 (+1 user), 0 (rename existing user), -1 (-1 user)
if (typeof name === "undefined") { return; }
name = name || Messages.anonymous;
if (Config.disableUserlistNotifications) { return; }
switch(type) {
case 1:
Cryptpad.log(Messages._getKey("notifyJoined", [name]));