SMYN: Fix mention coloring when using IRCColors. (#817)

This commit is contained in:
Etorix 2026-02-20 12:57:02 -08:00 • committed by GitHub
parent 3c7cbf42bd
commit f6a9580197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -380,7 +380,7 @@ function getMentionNameElement(props: mentionProps): JSX.Element | null {
let colorStrings: colorStringsType = undefined;
if (isPluginEnabled(ircColors.name)) {
const color = ircColors.calculateNameColorForMessageContext({ message: { author: { id: userId } }, channel });
const color = ircColors.calculateNameColorForMessageContext({ message: { author: author }, author: author, channel: channel });
if (color) {
colorString = color;