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') } }) }