From 58815b642e53a8502f63e4ebdee5375a4b680472 Mon Sep 17 00:00:00 2001 From: Elvyra <88881326+EepyElvyra@users.noreply.github.com> Date: Fri, 9 Jan 2026 21:53:30 +0000 Subject: [PATCH] RoleColorEverywhere: only colour sent messages (ignore pending/failed) (#3895) Co-authored-by: V --- src/plugins/roleColorEverywhere/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/roleColorEverywhere/index.tsx b/src/plugins/roleColorEverywhere/index.tsx index 7d71444b9..5101df86a 100644 --- a/src/plugins/roleColorEverywhere/index.tsx +++ b/src/plugins/roleColorEverywhere/index.tsx @@ -192,6 +192,9 @@ export default definePlugin({ const { messageSaturation } = settings.use(["messageSaturation"]); const author = useMessageAuthor(message); + // Do not apply role color if the send fails, otherwise it becomes indistinguishable if the message is sent + if (message.state !== "SENT") return; + if (author.colorString != null && messageSaturation !== 0) { const value = `color-mix(in oklab, ${author.colorString} ${messageSaturation}%, var({DEFAULT}))`;