From 9f817714fe76d40604c46832c96e6f741a549818 Mon Sep 17 00:00:00 2001 From: 21pages Date: Wed, 15 Apr 2026 21:40:03 +0800 Subject: [PATCH] fix(client): stop retrying on restricted mobile access errors (#14797) Treat "Access to mobile devices is restricted in your country" as a non-retriable connection error so the error dialog does not trigger reconnect attempts. Signed-off-by: 21pages --- src/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.rs b/src/client.rs index 527f65a12..72652776a 100644 --- a/src/client.rs +++ b/src/client.rs @@ -3870,6 +3870,7 @@ pub fn check_if_retry(msgtype: &str, title: &str, text: &str, retry_for_relay: b && !text.to_lowercase().contains("resolve") && !text.to_lowercase().contains("mismatch") && !text.to_lowercase().contains("manually") + && !text.to_lowercase().contains("restricted") && !text.to_lowercase().contains("not allowed"))) }