fix: Minor fixes
This commit is contained in:
parent
14eddf1d86
commit
df02de5674
2 changed files with 18 additions and 6 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue