From c30e6c4aa20d0b41c7db62e78beb33fb7500c4fb Mon Sep 17 00:00:00 2001 From: Krille Date: Tue, 17 Dec 2024 15:15:39 +0100 Subject: [PATCH] build: Update matrix sdk and dependencies --- .github/workflows/versions.env | 2 +- lib/utils/init_with_restore.dart | 8 ++++++-- lib/utils/voip_plugin.dart | 6 ++++++ pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/versions.env b/.github/workflows/versions.env index bf9b00f059..c0c442ad62 100644 --- a/.github/workflows/versions.env +++ b/.github/workflows/versions.env @@ -1,2 +1,2 @@ -FLUTTER_VERSION=3.27.0 +FLUTTER_VERSION=3.27.1 JAVA_VERSION=17 diff --git a/lib/utils/init_with_restore.dart b/lib/utils/init_with_restore.dart index f979adbe88..5870e4b11a 100644 --- a/lib/utils/init_with_restore.dart +++ b/lib/utils/init_with_restore.dart @@ -70,7 +70,9 @@ extension InitWithRestoreExtension on Client { try { await init( - onMigration: onMigration, + onInitStateChanged: (state) { + if (state == InitState.migratingDatabase) onMigration?.call(); + }, waitForFirstSync: false, waitUntilLoadCompletedLoaded: false, ); @@ -122,7 +124,9 @@ extension InitWithRestoreExtension on Client { newUserID: sessionBackup.userId, waitForFirstSync: false, waitUntilLoadCompletedLoaded: false, - onMigration: onMigration, + onInitStateChanged: (state) { + if (state == InitState.migratingDatabase) onMigration?.call(); + }, ); ClientManager.sendInitNotification( l10n.initAppError, diff --git a/lib/utils/voip_plugin.dart b/lib/utils/voip_plugin.dart index d2ca1f999c..6d0c06dcdd 100644 --- a/lib/utils/voip_plugin.dart +++ b/lib/utils/voip_plugin.dart @@ -195,4 +195,10 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate { @override // TODO: implement keyProvider EncryptionKeyProvider? get keyProvider => throw UnimplementedError(); + + @override + Future registerListeners(CallSession session) { + // TODO: implement registerListeners + throw UnimplementedError(); + } } diff --git a/pubspec.lock b/pubspec.lock index a2606cc9b3..53de5b0751 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1159,10 +1159,10 @@ packages: dependency: "direct main" description: name: matrix - sha256: "94a66e563b89fabbeb67f24428f05f4547c6ee98878ec20f647530cbfb6f04db" + sha256: de99186797fddbf309dae0d9b9b4d35b49ca10d7bb362727f7cd916ce71a77d7 url: "https://pub.dev" source: hosted - version: "0.35.0" + version: "0.36.0" meta: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index a22d7c6a90..37840d2367 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -62,7 +62,7 @@ dependencies: just_audio: ^0.9.39 latlong2: ^0.9.1 linkify: ^5.0.0 - matrix: ^0.35.0 + matrix: ^0.36.0 mime: ^1.0.6 native_imaging: ^0.1.1 opus_caf_converter_dart: ^1.0.1