XMPP group chat colors

Adam Berti adam at bertigroup.com
Mon Jun 1 21:13:44 EDT 2020


Great, thanks for the amazing fast reply Eion. Looks like the only option would be to compile our own version with some changes. Thanks

Adam


From: Eion Robb <eion at robbmob.com>
Date: Monday, June 1, 2020 at 5:33 PM
To: Adam Berti <adam at bertigroup.com>
Cc: "support at pidgin.im" <support at pidgin.im>
Subject: Re: XMPP group chat colors

Hi Adam,

Colours for usernames in chats are hard-coded in Pidgin and won't be picked up from the server:
https://bitbucket.org/pidgin/main/src/release-2.x.y/pidgin/gtknickcolors.h<https://office365.us.vadesecure.com/safeproxy/v3?f=gLkv6n3fwVkmiAHDX6fBV6b_6hDs0V682awE7zB6CIfXp4-IaU2Lra8J_nJBC2Bb&i=TTLDpn-7MwFmYQitbF8_k4D5315Hg3xBNUghQg3dhxoAVkNCRsKth-e-5UTeq8eMZmvkT4dAUZBvUdzOSvOWAw&k=oueZ&r=iuOJOWUlQQnz2yACrTf9aWaR9cFbV8ITFcwBEwxzHrnoq_znHtGDjiDREhok85Yx&u=https%3A%2F%2Fbitbucket.org%2Fpidgin%2Fmain%2Fsrc%2Frelease-2.x.y%2Fpidgin%2Fgtknickcolors.h> - for the first 24 colours and
https://bitbucket.org/pidgin/main/src/release-2.x.y/pidgin/gtkconv.c#lines-10294<https://office365.us.vadesecure.com/safeproxy/v3?f=I2smf1awIcaHMi9JCuL7Ehh54eoXa6WBeiQnPeGvqiveIJmsWRlSrA7TB6hlRy5L&i=vRzaaAsTod82Jkb-QHp2Ovrovfrqx3hLQRFtpCp8QrbcyPBkFjmSWEPFc7b5FyRDZoBdfm8WpNGzWTzhTkFiDg&k=pB7C&r=BSU5PFV0YBKG7STG81KzTPFbWBst2UH0QrP6ufIC-yBNvF6er0hyqEb3o8VrbVfq&u=https%3A%2F%2Fbitbucket.org%2Fpidgin%2Fmain%2Fsrc%2Frelease-2.x.y%2Fpidgin%2Fgtkconv.c%23lines-10294> - for generating the next 196

https://bitbucket.org/pidgin/main/src/release-2.x.y/pidgin/gtkconv.c#lines-173:191<https://office365.us.vadesecure.com/safeproxy/v3?f=zaYHqm2rsf6GkX_U2w0o_sms54ihBLJHOPvG-A3rKD3jAwyLTl_2hwx5YlOsRI-e&i=ci6wjycWtrQE66KYlZdeC_Allzm-4h9kCvBWKlyLZ7nAdJkU0_7PU298i6jkYWz91b9brPpbCzPF1M1RlSRMuA&k=PMwz&r=QQRNSFD-ms1Ddz2t1q-R4OgbBofasv7i2Mz5TLyWBBMGAqIFcoRjZQNyb8GmlNa8&u=https%3A%2F%2Fbitbucket.org%2Fpidgin%2Fmain%2Fsrc%2Frelease-2.x.y%2Fpidgin%2Fgtkconv.c%23lines-173%3A191> is the algorithm used for turning a nickname into a colour

Cheers,
Eion

On Tue, 2 Jun 2020 at 11:27, Adam Berti <adam at bertigroup.com<mailto:adam at bertigroup.com>> wrote:
Hi All! Wondering if anyone can point me in the wrong direction. I’m got a setup going with Openfire XMPP Server and Pidgin as the client. The challenge we have run into is we use this in a setup where the user names are colors to represent the room and where they are. But because the group chat seems to have a mind of it’s own (algorithms), users are assigned colors which can’t be changed.

The issue is when the user red chats and their name is in purple. And purple is chatting and their name is in blue. And blue is chatting and their name is in brown. I Think you get the idea.

I’ve been doing some reading – sounds like this is maybe in development for the XMPP code, but I’m wondering if there’s some theme or something we can do to overcome this now, besides renaming our rooms!

Thanks.
Adam


_______________________________________________
Support at pidgin.im<mailto:Support at pidgin.im> mailing list
Want to unsubscribe?  Use this link:
https://lists.pidgin.im/listinfo/support<https://office365.us.vadesecure.com/safeproxy/v3?f=wfImMPOs8x6xmFPZ1BUlkA5366mUmkslqvRnTBBEluKPOj15hYmC3HhhMCbrBbfj&i=RJesZIJmAoueoRvpzJRdy-t13OSVL-R96bAPpyfmWy1yX2XVz58ZYu7M6GjuPLzC1Yq-HtrdYCxdRAoG9y1fAg&k=BVDd&r=iVK7PSsbxnaqA8kpdfxzuWrnquxQGNb4yoHPuvJTCdaSP3Y4D4fLCpNBDIhrABIo&u=https%3A%2F%2Flists.pidgin.im%2Flistinfo%2Fsupport>


More information about the Support mailing list