fix: Flickerfree app start
This commit is contained in:
parent
e199b3935e
commit
8724e41545
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ class ChatListView extends StatelessWidget {
|
||||||
return FutureBuilder<void>(
|
return FutureBuilder<void>(
|
||||||
future: controller.waitForFirstSync(),
|
future: controller.waitForFirstSync(),
|
||||||
builder: (BuildContext context, snapshot) {
|
builder: (BuildContext context, snapshot) {
|
||||||
if (snapshot.hasData) {
|
if (Matrix.of(context).client.prevBatch != null) {
|
||||||
final rooms = List<Room>.from(
|
final rooms = List<Room>.from(
|
||||||
Matrix.of(context).client.rooms);
|
Matrix.of(context).client.rooms);
|
||||||
rooms.removeWhere(
|
rooms.removeWhere(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue