fix: Minor fixes

This commit is contained in:
Christian Pauly 2020-10-04 20:30:06 +02:00
commit df02de5674
2 changed files with 18 additions and 6 deletions

View file

@ -456,12 +456,16 @@ class _ChatListState extends State<ChatList> {
ConnectionStatusHeader(),
Expanded(
child: StreamBuilder(
stream: Matrix.of(context)
.client
.onSync
.stream
.where((s) =>
s.hasRoomUpdate || s.hasPresenceUpdate),
stream:
Matrix.of(context).client.onSync.stream.where(
(s) =>
s.hasRoomUpdate ||
s.accountData
.where((a) =>
a.type ==
MatrixState.userStatusesType)
.isNotEmpty,
),
builder: (context, snapshot) {
return FutureBuilder<void>(
future: waitForFirstSync(context),