From 2408d9cf72bd5f96c9a4c98c68aea9432026df9d Mon Sep 17 00:00:00 2001 From: John Livingston Date: Thu, 14 Mar 2024 16:06:29 +0100 Subject: [PATCH] Implement #143: User colors Implementing [XEP-0392](https://xmpp.org/extensions/xep-0392.html) to have random colors on users nicknames. --- CHANGELOG.md | 4 ++++ conversejs/build-conversejs.sh | 3 ++- conversejs/lib/converse-params.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6408680f..5f54fffa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## ??? (Not Released Yet) + +* #143: User colors: implementing [XEP-0392](https://xmpp.org/extensions/xep-0392.html) to have random colors on users nicknames + ## 8.4.0 * Fix #87: updating chat room title when video/channel title is changed. diff --git a/conversejs/build-conversejs.sh b/conversejs/build-conversejs.sh index 5e693ec9..7b776fc6 100644 --- a/conversejs/build-conversejs.sh +++ b/conversejs/build-conversejs.sh @@ -25,8 +25,9 @@ CONVERSE_COMMIT="" # - Adding "users" icon in the menu toggle button # - Removing unecessary plugins: headless/pubsub, minimize, notifications, profile, omemo, push, roomlist, dragresize. # - Destroy room: remove the challenge, and the new JID +# - New config option [colorize_username](https://conversejs.org/docs/html/configuration.html#colorize_username) CONVERSE_VERSION="livechat-8.2.0" -CONVERSE_COMMIT="cb6c0bd87c0078d5c62308fc3b83efd5019f993c" +CONVERSE_COMMIT="ae1b576d5c9d2691df896d603cd65726b3e04480" CONVERSE_REPO="https://github.com/JohnXLivingston/converse.js" rootdir="$(pwd)" diff --git a/conversejs/lib/converse-params.ts b/conversejs/lib/converse-params.ts index a5de427b..6d1a99b4 100644 --- a/conversejs/lib/converse-params.ts +++ b/conversejs/lib/converse-params.ts @@ -87,6 +87,7 @@ function defaultConverseParams ( prune_messages_above: 100, // only keep 100 message in history. pruning_behavior: 'unscrolled', + colorize_username: true, // This is a specific settings, that is used in ConverseJS customization, to force avatars loading in readonly mode. livechat_load_all_vcards: !!forceReadonly