build: Matrix version 3.0.0
This commit is contained in:
parent
d48ff5b9a3
commit
f634e67d69
3 changed files with 7 additions and 24 deletions
|
|
@ -46,22 +46,7 @@ class SettingsIgnoreListController extends State<SettingsIgnoreList> {
|
|||
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();
|
||||
|
|
|
|||
11
pubspec.lock
11
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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue