make userlist change notifications configurable
This commit is contained in:
parent
027b9fa383
commit
69f9a7ebf3
@ -12,6 +12,7 @@ define(function() {
|
|||||||
* You can change their duration here (measured in milliseconds)
|
* You can change their duration here (measured in milliseconds)
|
||||||
*/
|
*/
|
||||||
config.notificationTimeout = 5000;
|
config.notificationTimeout = 5000;
|
||||||
|
config.disableUserlistNotifications = false;
|
||||||
|
|
||||||
config.enablePinning = true;
|
config.enablePinning = true;
|
||||||
|
|
||||||
|
|||||||
@ -886,6 +886,7 @@ define([
|
|||||||
// type : 1 (+1 user), 0 (rename existing user), -1 (-1 user)
|
// type : 1 (+1 user), 0 (rename existing user), -1 (-1 user)
|
||||||
if (typeof name === "undefined") { return; }
|
if (typeof name === "undefined") { return; }
|
||||||
name = name || Messages.anonymous;
|
name = name || Messages.anonymous;
|
||||||
|
if (Config.disableUserlistNotifications) { return; }
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case 1:
|
case 1:
|
||||||
Cryptpad.log(Messages._getKey("notifyJoined", [name]));
|
Cryptpad.log(Messages._getKey("notifyJoined", [name]));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user