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 @override
String wasDirectChatDisplayName(String oldDisplayName) => String wasDirectChatDisplayName(String oldDisplayName) =>
l10n.wasDirectChatDisplayName(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; kIsWeb ? false : await CallKeepManager().hasPhoneAccountEnabled;
@override @override
void playRingtone() async { Future<void> playRingtone() async {
if (!background && !await hasCallingAccount) { if (!background && !await hasCallingAccount) {
try { try {
await UserMediaManager().startRingingTone(); await UserMediaManager().startRingingTone();
@ -127,7 +127,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
} }
@override @override
void stopRingtone() async { Future<void> stopRingtone() async {
if (!background && !await hasCallingAccount) { if (!background && !await hasCallingAccount) {
try { try {
await UserMediaManager().stopRingingTone(); await UserMediaManager().stopRingingTone();
@ -136,7 +136,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
} }
@override @override
void handleNewCall(CallSession call) async { Future<void> handleNewCall(CallSession call) async {
if (PlatformInfos.isAndroid) { if (PlatformInfos.isAndroid) {
// probably works on ios too // probably works on ios too
final hasCallingAccount = await CallKeepManager().hasPhoneAccountEnabled; final hasCallingAccount = await CallKeepManager().hasPhoneAccountEnabled;
@ -184,7 +184,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
} }
@override @override
void handleCallEnded(CallSession session) async { Future<void> handleCallEnded(CallSession session) async {
if (overlayEntry != null) { if (overlayEntry != null) {
overlayEntry!.remove(); overlayEntry!.remove();
overlayEntry = null; overlayEntry = null;
@ -198,12 +198,12 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
} }
@override @override
void handleGroupCallEnded(GroupCall groupCall) { Future<void> handleGroupCallEnded(GroupCall groupCall) async {
// TODO: implement handleGroupCallEnded // TODO: implement handleGroupCallEnded
} }
@override @override
void handleNewGroupCall(GroupCall groupCall) { Future<void> handleNewGroupCall(GroupCall groupCall) async {
// TODO: implement handleNewGroupCall // TODO: implement handleNewGroupCall
} }
@ -213,7 +213,7 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
voip.currentCID == null && voip.currentGroupCID == null; voip.currentCID == null && voip.currentGroupCID == null;
@override @override
void handleMissedCall(CallSession session) { Future<void> handleMissedCall(CallSession session) async {
// TODO: implement handleMissedCall // TODO: implement handleMissedCall
} }
} }

View File

@ -1139,10 +1139,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: matrix name: matrix
sha256: "9e661004d56e176bf5e6ea30cc517e41392d36eccd8af4b0a9bc5a982def2552" sha256: "8c07fa7b558d28891ea2609542295e4bb3e8360545540b434abaf055dde3a59c"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.17.1" version: "0.18.0"
matrix_api_lite: matrix_api_lite:
dependency: transitive dependency: transitive
description: description:

View File

@ -57,7 +57,7 @@ dependencies:
just_audio_mpv: ^0.1.6 just_audio_mpv: ^0.1.6
keyboard_shortcuts: ^0.1.4 keyboard_shortcuts: ^0.1.4
latlong2: ^0.8.1 latlong2: ^0.8.1
matrix: ^0.17.1 matrix: ^0.18.0
matrix_homeserver_recommendations: ^0.3.0 matrix_homeserver_recommendations: ^0.3.0
matrix_link_text: ^1.0.2 matrix_link_text: ^1.0.2
native_imaging: ^0.1.0 native_imaging: ^0.1.0