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}))`;