diff --git a/NucleicRemote/NucleicRemote/Views/BuildBanner.swift b/NucleicRemote/NucleicRemote/Views/BuildBanner.swift index a07e9ee..7acc399 100644 --- a/NucleicRemote/NucleicRemote/Views/BuildBanner.swift +++ b/NucleicRemote/NucleicRemote/Views/BuildBanner.swift @@ -17,6 +17,18 @@ enum BuildChannel { case releaseCandidate /// The `stable` channel — no banner. case release + + /// The wire projection sent to the host in `hello`, so it can gate the connection on + /// channel compatibility (`ReleaseChannel.isCompatible`). + var releaseChannel: ReleaseChannel { + switch self { + case .local: .local + case .canary: .canary + case .beta: .beta + case .releaseCandidate: .releaseCandidate + case .release: .release + } + } } /// Build identity for the running app: which channel it came from and its build label.