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;
|
final client = Matrix.of(context).client;
|
||||||
showFutureLoadingDialog(
|
showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () async {
|
future: () => client.ignoreUser(userId),
|
||||||
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);
|
|
||||||
},
|
|
||||||
);
|
);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
controller.clear();
|
controller.clear();
|
||||||
|
|
|
||||||
11
pubspec.lock
11
pubspec.lock
|
|
@ -1113,12 +1113,11 @@ packages:
|
||||||
matrix:
|
matrix:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
name: matrix
|
||||||
ref: HEAD
|
sha256: "832d112e556cbb6fcf5e7e4528c840c1f95f865682ade277dc2b9e4128431021"
|
||||||
resolved-ref: "102d04304e1af33c4c71f502f487d5d31f9eaefb"
|
url: "https://pub.dev"
|
||||||
url: "https://github.com/famedly/matrix-dart-sdk.git"
|
source: hosted
|
||||||
source: git
|
version: "3.0.0"
|
||||||
version: "2.0.1"
|
|
||||||
meta:
|
meta:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,7 @@ dependencies:
|
||||||
just_audio: ^0.10.5
|
just_audio: ^0.10.5
|
||||||
latlong2: ^0.9.1
|
latlong2: ^0.9.1
|
||||||
linkify: ^5.0.0
|
linkify: ^5.0.0
|
||||||
matrix:
|
matrix: ^3.0.0
|
||||||
git: https://github.com/famedly/matrix-dart-sdk.git
|
|
||||||
mime: ^2.0.0
|
mime: ^2.0.0
|
||||||
native_imaging: ^0.2.0
|
native_imaging: ^0.2.0
|
||||||
opus_caf_converter_dart: ^1.0.1
|
opus_caf_converter_dart: ^1.0.1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue