diff --git a/lib/src/client.dart b/lib/src/client.dart index d6fd346a..cc027207 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -2221,7 +2221,7 @@ class Client extends MatrixApi { requestHistoryOnLimitedTimeline) { Logs().v( 'Limited timeline for ${rooms[roomIndex].id} request history now'); - runInRoot(rooms[roomIndex].requestHistory); + unawaited(runInRoot(rooms[roomIndex].requestHistory)); } } return room; diff --git a/lib/src/room.dart b/lib/src/room.dart index 37ed4f5e..d9327ab9 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1190,7 +1190,7 @@ class Room { // Update archived rooms, otherwise an archived room may still be in the // list after a forget room call final roomIndex = client.archivedRooms.indexWhere((r) => r.room.id == id); - if(roomIndex != -1){ + if (roomIndex != -1) { client.archivedRooms.removeAt(roomIndex); } return;