Remove the outdated-app check on connect and its messages

- Drop the protocol version gate in the game handshake and its banner
- Admit spectators of any version and drop the update-required dialogs
- Remove the related strings and tests; reword the unverified warning
This commit is contained in:
2026-11-08 11:11:01 +02:00
parent f8fce1675f
commit 2751461fa0
20 changed files with 17 additions and 99 deletions
@@ -84,7 +84,6 @@ data class GameUiState(
val opponentUntrusted: Boolean = false,
val opponentUnverified: Boolean = false,
val opponentOutdated: Boolean = false,
val handshake: HandshakeState = HandshakeState.DISCONNECTED,
val newPeerFingerprint: String? = null,
@@ -1078,13 +1077,6 @@ class GameViewModel : ViewModel() {
NetworkLog.log("GAME", "Repeated profile in current session ignored")
return
}
if (msg.protocolVersion < GameMessage.PROTOCOL_VERSION) {
NetworkLog.log(
"GAME", "Opponent protocol version ${msg.protocolVersion} < ${GameMessage.PROTOCOL_VERSION}, incompatible"
)
_uiState.value = _uiState.value.copy(opponentOutdated = true)
return
}
val peers = knownPeers
if (peers == null) {
NetworkLog.log("GAME", "Key store not ready, profile rejected")