From bc52c9f677cea96cad1627008311e8dfa92fc71d Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 3 Jul 2024 15:13:04 +0200 Subject: [PATCH 1/2] build: Update matrix dart sdk --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 97aad333e..ccc7006c2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1210,10 +1210,10 @@ packages: dependency: "direct main" description: name: matrix - sha256: bb6de59d0f69e10bb6893130a967f1ffcbfa3d3ffed3864f0736ce3d968e669c + sha256: a27c2f73d28ea292e0f67f3d36396fb8acd7cfc97a07901dc7b22f46e082c3d6 url: "https://pub.dev" source: hosted - version: "0.29.12" + version: "0.30.0" meta: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 878f03c87..e4a6ec8d6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -64,7 +64,7 @@ dependencies: keyboard_shortcuts: ^0.1.4 latlong2: ^0.9.1 linkify: ^5.0.0 - matrix: ^0.29.13 + matrix: ^0.30.0 native_imaging: ^0.1.1 package_info_plus: ^6.0.0 pasteboard: ^0.2.0 From 873362428c2ad8bf2db122c2c8c7dd49a44174af Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 3 Jul 2024 15:14:10 +0200 Subject: [PATCH 2/2] 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 1b0983bd4..5ccd560f9 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 65be02a1f..f9473c3f5 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;