bakkot / matrix-archive-bot

bot to log matrix channels
13 stars 0 forks source link

Color should be set by user ID, not display name #1

Open MayeulC opened 3 years ago

MayeulC commented 3 years ago

Otherwise you end up with changing colors, which doesn't convey the fact that it is indeed the same user:

image

This is how nheko does it: hash user ID and distribute it on a color wheel, ensure the contrast is good enough.

Element uses a simpler approach with a LUT and 8 colors, configurable with a theme.

bakkot commented 3 years ago

Hm, I'm undecided about this. I've also seen someone log in using multiple matrix accounts on different homeservers, but set their display name to the same thing each time; in that case the current behavior is correct.

In practice I doubt it'll come up much; people don't tend to change either very often, in my experience.

MayeulC commented 3 years ago

It really depends which room you are in, some use that as a status message, since you can have per-room nicks (/myroomnick in Element).

As you prefer, that's just how most Matrix clients handle it, and I was surprised while perusing the log. That's all :)

bakkot commented 3 years ago

I suppose it makes sense to match prevailing convention among other matrix clients. I'll put it on my backburner to fix it.