fix: Flickerfree app start

This commit is contained in:
Christian Pauly 2021-06-20 13:45:35 +02:00
parent 797105cd17
commit 8dea650300

View File

@ -166,7 +166,7 @@ class ChatListView extends StatelessWidget {
return FutureBuilder<void>(
future: controller.waitForFirstSync(),
builder: (BuildContext context, snapshot) {
if (snapshot.hasData) {
if (Matrix.of(context).client.prevBatch != null) {
final rooms = List<Room>.from(
Matrix.of(context).client.rooms);
rooms.removeWhere(