chore: Add more exception type

This commit is contained in:
krille-chan 2023-12-26 16:25:11 +01:00
parent a72b20ca46
commit eb879936a6
No known key found for this signature in database

View file

@ -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();