fix: Do not copy room list

This commit is contained in:
Christian Pauly 2021-08-04 10:08:48 +02:00
parent 55c0fa889f
commit fbf1cf10e2

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) {