chore: Update matrix sdk to 0.18.0

This commit is contained in:
Christian Kußowski 2023-03-15 09:44:34 +01:00
parent 8888fd5884
commit 3b6321383e
4 changed files with 13 additions and 10 deletions

View File

@ -308,4 +308,7 @@ class MatrixLocals extends MatrixLocalizations {
@override
String wasDirectChatDisplayName(String oldDisplayName) =>
l10n.wasDirectChatDisplayName(oldDisplayName);
//@override
String get unknownUser => l10n.user;
}

View File

@ -118,7 +118,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
kIsWeb ? false : await CallKeepManager().hasPhoneAccountEnabled;
@override
void playRingtone() async {
Future<void> 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<void> 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<void> 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<void> 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<void> handleGroupCallEnded(GroupCall groupCall) async {
// TODO: implement handleGroupCallEnded
}
@override
void handleNewGroupCall(GroupCall groupCall) {
Future<void> 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<void> handleMissedCall(CallSession session) async {
// TODO: implement handleMissedCall
}
}

View File

@ -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:

View File

@ -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