Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): block incompatible server connections #11974

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/11974/headmerged by juliusmarminge View on GitHub

Showing 20 changed files with 13 additions and 2 deletions (loading 17).

x
0 of 20 viewed, 20 left
1 addition and 0 deletionsapps/mobile/src/features/connection/ConnectionStatusDot.tsxModified
View file
@@ -35,6 +35,7 @@
haloColor: "rgba(245,158,11,0.5)",
};
case "offline":
+ case "unsupported":
case "error":
return {
dotColor: "#ef4444",
6 additions and 2 deletionsapps/mobile/src/features/connection/EnvironmentConnectionNotice.tsxModified
View file
@@ -16,6 +16,8 @@
return `Connecting to ${environmentLabel}...`;
case "reconnecting":
return `Reconnecting to ${environmentLabel}...`;
+ case "unsupported":
+ return "Client not supported";
case "error":
return `${environmentLabel} is unavailable`;
case "available":
@@ -31,7 +33,7 @@
error: string | null,
): string {
if (error) {
- return `The app will keep retrying automatically. ${error}`;
+ return phase === "reconnecting" ? `The app will keep retrying automatically. ${error}` : error;
​