refactor: Migrate to new matrix sdk API

This commit is contained in:
Krille Fear 2021-08-18 15:24:59 +00:00
commit 47e68d813d
32 changed files with 103 additions and 93 deletions

View file

@ -194,7 +194,7 @@ class ChatController extends State<Chat> {
// ignore: unawaited_futures
room.setReadMarker(
timeline.events.first.eventId,
readReceiptLocationEventId: timeline.events.first.eventId,
mRead: timeline.events.first.eventId,
);
if (PlatformInfos.isIOS) {
// Workaround for iOS not clearing notifications with fcm_shared_isolate
@ -421,8 +421,8 @@ class ChatController extends State<Chat> {
future: () => Matrix.of(context).client.reportContent(
event.roomId,
event.eventId,
reason.single,
score,
reason: reason.single,
score: score,
),
);
if (result.error != null) return;