fix: Move to latest null safe sdk

This commit is contained in:
Krille Fear 2021-11-09 16:53:27 +01:00
commit 33a7a00311
6 changed files with 10 additions and 19 deletions

View file

@ -432,7 +432,7 @@ class _ChatListViewBody extends StatelessWidget {
return FutureBuilder<void>(
future: controller.waitForFirstSync(),
builder: (BuildContext context, snapshot) {
if (Matrix.of(context).client.prevBatch != null) {
if (snapshot.connectionState == ConnectionState.done) {
final rooms = Matrix.of(context)
.client
.rooms