diff --git a/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt b/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt index 0ff2b32..d811df5 100644 --- a/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt +++ b/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt @@ -188,6 +188,23 @@ private fun LinkRow(link: RustLinkDto, busy: Boolean, onUnlink: () -> Unit) { style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant, ) + + // When, and which server minted the code. Not part of the + // identity โ€” a link is fleet-wide โ€” but it is where a support + // conversation starts, and the website's own row says it. + val when_ = rustAgo(link.linkedAt) + val where = link.serverId?.takeIf { it.isNotBlank() } + + if (when_ != null || where != null) { + Text( + text = listOfNotNull( + when_?.let { stringResource(R.string.rust_account_linked_when, it) }, + where, + ).joinToString(" ยท "), + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant, + ) + } } TextButton(onClick = onUnlink, enabled = !busy) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0ca42ca..7e91b39 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -621,6 +621,7 @@ Could not link that code. Unlink Could not unlink that account. + linked %1$s No Steam account is linked to this profile yet. A link covers every server this community runs โ€” a Steam account is one person wherever they play. You can also type /unlink in game. What you can do in game