From eb879936a67795e49f0224e768422ad54c452133 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Tue, 26 Dec 2023 16:25:11 +0100 Subject: [PATCH] chore: Add more exception type --- lib/utils/localized_exception_extension.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/utils/localized_exception_extension.dart b/lib/utils/localized_exception_extension.dart index 5a6dcae59..65be02a1f 100644 --- a/lib/utils/localized_exception_extension.dart +++ b/lib/utils/localized_exception_extension.dart @@ -67,7 +67,9 @@ extension LocalizedExceptionExtension on Object { supportedVersions, ); } - if (this is MatrixConnectionException || this is SocketException) { + if (this is MatrixConnectionException || + this is SocketException || + this is SyncConnectionException) { return L10n.of(context)!.noConnectionToTheServer; } if (this is String) return toString();