fix: Follow up matrix sdk update

This commit is contained in:
Krille 2024-07-03 15:14:10 +02:00
parent bc52c9f677
commit 873362428c
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ class EventVideoPlayerState extends State<EventVideoPlayer> {
autoInitialize: true, autoInitialize: true,
); );
} }
} on MatrixConnectionException catch (e) { } on IOException catch (e) {
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
SnackBar( SnackBar(
content: Text(e.toLocalizedString(context)), content: Text(e.toLocalizedString(context)),

View file

@ -67,7 +67,7 @@ extension LocalizedExceptionExtension on Object {
supportedVersions, supportedVersions,
); );
} }
if (this is MatrixConnectionException || if (this is IOException ||
this is SocketException || this is SocketException ||
this is SyncConnectionException) { this is SyncConnectionException) {
return L10n.of(context)!.noConnectionToTheServer; return L10n.of(context)!.noConnectionToTheServer;