From f634e67d69aae0170fc0c9320212f3aa48652306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Tue, 7 Oct 2025 11:37:00 +0200 Subject: [PATCH] build: Matrix version 3.0.0 --- .../settings_ignore_list.dart | 17 +---------------- pubspec.lock | 11 +++++------ pubspec.yaml | 3 +-- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/lib/pages/settings_ignore_list/settings_ignore_list.dart b/lib/pages/settings_ignore_list/settings_ignore_list.dart index c55987e34..3bcea3dfe 100644 --- a/lib/pages/settings_ignore_list/settings_ignore_list.dart +++ b/lib/pages/settings_ignore_list/settings_ignore_list.dart @@ -46,22 +46,7 @@ class SettingsIgnoreListController extends State { final client = Matrix.of(context).client; showFutureLoadingDialog( context: context, - future: () async { - for (final room in client.rooms) { - final isInviteFromUser = room.membership == Membership.invite && - room.getState(EventTypes.RoomMember, client.userID!)?.senderId == - userId; - - if (room.directChatMatrixID == userId || isInviteFromUser) { - try { - await room.leave(); - } catch (e, s) { - Logs().w('Unable to leave room with blocked user $userId', e, s); - } - } - } - await client.ignoreUser(userId); - }, + future: () => client.ignoreUser(userId), ); setState(() {}); controller.clear(); diff --git a/pubspec.lock b/pubspec.lock index 30737cba7..b60b5e537 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1113,12 +1113,11 @@ packages: matrix: dependency: "direct main" description: - path: "." - ref: HEAD - resolved-ref: "102d04304e1af33c4c71f502f487d5d31f9eaefb" - url: "https://github.com/famedly/matrix-dart-sdk.git" - source: git - version: "2.0.1" + name: matrix + sha256: "832d112e556cbb6fcf5e7e4528c840c1f95f865682ade277dc2b9e4128431021" + url: "https://pub.dev" + source: hosted + version: "3.0.0" meta: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 1f9f56cd7..be6823ff2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -52,8 +52,7 @@ dependencies: just_audio: ^0.10.5 latlong2: ^0.9.1 linkify: ^5.0.0 - matrix: - git: https://github.com/famedly/matrix-dart-sdk.git + matrix: ^3.0.0 mime: ^2.0.0 native_imaging: ^0.2.0 opus_caf_converter_dart: ^1.0.1