From 3b6321383ed80f0dd40fda4fb38d40b1cb4088f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Wed, 15 Mar 2023 09:44:34 +0100 Subject: [PATCH] chore: Update matrix sdk to 0.18.0 --- lib/utils/matrix_sdk_extensions/matrix_locals.dart | 3 +++ lib/utils/voip_plugin.dart | 14 +++++++------- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/utils/matrix_sdk_extensions/matrix_locals.dart b/lib/utils/matrix_sdk_extensions/matrix_locals.dart index fdf2030d..4fb461fa 100644 --- a/lib/utils/matrix_sdk_extensions/matrix_locals.dart +++ b/lib/utils/matrix_sdk_extensions/matrix_locals.dart @@ -308,4 +308,7 @@ class MatrixLocals extends MatrixLocalizations { @override String wasDirectChatDisplayName(String oldDisplayName) => l10n.wasDirectChatDisplayName(oldDisplayName); + + //@override + String get unknownUser => l10n.user; } diff --git a/lib/utils/voip_plugin.dart b/lib/utils/voip_plugin.dart index 65ad9370..5d77c887 100644 --- a/lib/utils/voip_plugin.dart +++ b/lib/utils/voip_plugin.dart @@ -118,7 +118,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate { kIsWeb ? false : await CallKeepManager().hasPhoneAccountEnabled; @override - void playRingtone() async { + Future playRingtone() async { if (!background && !await hasCallingAccount) { try { await UserMediaManager().startRingingTone(); @@ -127,7 +127,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate { } @override - void stopRingtone() async { + Future stopRingtone() async { if (!background && !await hasCallingAccount) { try { await UserMediaManager().stopRingingTone(); @@ -136,7 +136,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate { } @override - void handleNewCall(CallSession call) async { + Future handleNewCall(CallSession call) async { if (PlatformInfos.isAndroid) { // probably works on ios too final hasCallingAccount = await CallKeepManager().hasPhoneAccountEnabled; @@ -184,7 +184,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate { } @override - void handleCallEnded(CallSession session) async { + Future handleCallEnded(CallSession session) async { if (overlayEntry != null) { overlayEntry!.remove(); overlayEntry = null; @@ -198,12 +198,12 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate { } @override - void handleGroupCallEnded(GroupCall groupCall) { + Future handleGroupCallEnded(GroupCall groupCall) async { // TODO: implement handleGroupCallEnded } @override - void handleNewGroupCall(GroupCall groupCall) { + Future handleNewGroupCall(GroupCall groupCall) async { // TODO: implement handleNewGroupCall } @@ -213,7 +213,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate { voip.currentCID == null && voip.currentGroupCID == null; @override - void handleMissedCall(CallSession session) { + Future handleMissedCall(CallSession session) async { // TODO: implement handleMissedCall } } diff --git a/pubspec.lock b/pubspec.lock index 89ebe6b0..3d66952d 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1139,10 +1139,10 @@ packages: dependency: "direct main" description: name: matrix - sha256: "9e661004d56e176bf5e6ea30cc517e41392d36eccd8af4b0a9bc5a982def2552" + sha256: "8c07fa7b558d28891ea2609542295e4bb3e8360545540b434abaf055dde3a59c" url: "https://pub.dev" source: hosted - version: "0.17.1" + version: "0.18.0" matrix_api_lite: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index b68c661a..ef418019 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -57,7 +57,7 @@ dependencies: just_audio_mpv: ^0.1.6 keyboard_shortcuts: ^0.1.4 latlong2: ^0.8.1 - matrix: ^0.17.1 + matrix: ^0.18.0 matrix_homeserver_recommendations: ^0.3.0 matrix_link_text: ^1.0.2 native_imaging: ^0.1.0