From 91c1c356492a3a4a0b72c0420a3964a5a63874ca Mon Sep 17 00:00:00 2001 From: John Livingston Date: Mon, 10 Jan 2022 03:06:16 +0100 Subject: [PATCH] Shorter random nickname. --- conversejs/builtin.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index 5ee94a3b..c585a35c 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -74,6 +74,12 @@ async function authenticatedMode (authenticationUrl: string): Promise compute the muc nickname from the jid (will be random here) @@ -243,7 +249,7 @@ window.initConverse = async function initConverse ({ } else { Object.assign(_converse, { getDefaultMUCNickname: function (this: any): any { - return getDefaultMUCNickname.apply(this, arguments) ?? 'Anonymous ' + (new Date()).getTime().toString() + return getDefaultMUCNickname.apply(this, arguments) ?? randomNick('Anonymous') } }) }