fix: Do not copy room list

This commit is contained in:
Christian Pauly 2021-08-04 10:08:48 +02:00
parent fcc66d2820
commit 36fac99de6

View File

@ -261,7 +261,9 @@ class _ChatListViewBody extends StatelessWidget {
future: controller.waitForFirstSync(),
builder: (BuildContext context, snapshot) {
if (Matrix.of(context).client.prevBatch != null) {
final rooms = List<Room>.from(Matrix.of(context).client.rooms)
final rooms = Matrix.of(context)
.client
.rooms
.where(controller.roomCheck)
.toList();
if (rooms.isEmpty) {