From 873362428c2ad8bf2db122c2c8c7dd49a44174af Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 3 Jul 2024 15:14:10 +0200 Subject: [PATCH] fix: Follow up matrix sdk update --- lib/pages/chat/events/video_player.dart | 2 +- lib/utils/localized_exception_extension.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/events/video_player.dart b/lib/pages/chat/events/video_player.dart index 1b0983bd..5ccd560f 100644 --- a/lib/pages/chat/events/video_player.dart +++ b/lib/pages/chat/events/video_player.dart @@ -71,7 +71,7 @@ class EventVideoPlayerState extends State { autoInitialize: true, ); } - } on MatrixConnectionException catch (e) { + } on IOException catch (e) { ScaffoldMessenger.of(context).showSnackBar( SnackBar( content: Text(e.toLocalizedString(context)), diff --git a/lib/utils/localized_exception_extension.dart b/lib/utils/localized_exception_extension.dart index 65be02a1..f9473c3f 100644 --- a/lib/utils/localized_exception_extension.dart +++ b/lib/utils/localized_exception_extension.dart @@ -67,7 +67,7 @@ extension LocalizedExceptionExtension on Object { supportedVersions, ); } - if (this is MatrixConnectionException || + if (this is IOException || this is SocketException || this is SyncConnectionException) { return L10n.of(context)!.noConnectionToTheServer;