No mention highlight on join/part/quit lines, bump to 0.1.11

Only chat, action and notice lines get the mention tint now. Join, part,
quit, nick and mode lines about you always contain your nick, so every one
of your own joins used to be highlighted as a mention.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
weishaupt
2026-10-10 03:16:02 -04:00
co-authored by Claude Opus 5.5
parent efad80e141
commit 026e349db8
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ plugins {
}
group = "com.tpuahsiew.wirc"
version = "0.1.10"
version = "0.1.11"
// No project-level repositories{} block here: settings.gradle.kts sets
// dependencyResolutionManagement.repositoriesMode = FAIL_ON_PROJECT_REPOS and already
@@ -38,7 +38,7 @@ compose.desktop {
appResourcesRootDir.set(project.file("installerResources"))
targetFormats(TargetFormat.Msi, TargetFormat.Exe)
packageName = "wIRC"
packageVersion = "0.1.10"
packageVersion = "0.1.11"
windows {
menuGroup = "wIRC"
upgradeUuid = "8f14e45f-ceea-4a5e-9c3b-5b1f0e8c2b7a"
+6 -1
View File
@@ -1031,7 +1031,10 @@ fun MessageScrollback(
) { msg ->
val ts = timeFormat.format(Date(msg.timestampMillis))
val bodyAnnotated = parseMircToAnnotatedString(msg.rawText, textColor)
val mentioned = isMention(msg.rawText)
// Only real messages get the mention tint. Join/part/quit/nick/mode lines
// always contain your nick when they're about you ("you joined #chan"),
// which used to light up every one of your own joins.
val mentioned = msg.kind in MENTION_KINDS && isMention(msg.rawText)
val nickColor = if (displaySettings.nickColorsEnabled) colorForNick(msg.sender ?: "") else textColor
val mutedColor = textColor.copy(alpha = 0.7f)
val prefix = rowPrefix(msg, ts, mutedColor, nickColor)
@@ -1399,6 +1402,8 @@ private fun MentionColorPickerDialog(currentArgb: Int, onDismiss: () -> Unit, on
)
}
private val MENTION_KINDS = setOf(MessageKind.CHAT, MessageKind.ACTION, MessageKind.NOTICE)
@Composable
private fun WindowSettingsPanel(
displaySettings: WindowDisplaySettings,