Filter the onSync stream to only include updates that we want to deal with to re-render
This commit is contained in:
parent
13f429abbd
commit
3b1a6e4cea
4 changed files with 12 additions and 4 deletions
|
|
@ -337,7 +337,11 @@ class _ChatListState extends State<ChatList> {
|
|||
(r) => r.isFirst),
|
||||
),
|
||||
body: StreamBuilder(
|
||||
stream: Matrix.of(context).client.onSync.stream,
|
||||
stream: Matrix.of(context)
|
||||
.client
|
||||
.onSync
|
||||
.stream
|
||||
.where((s) => s.hasRoomUpdate),
|
||||
builder: (context, snapshot) {
|
||||
return FutureBuilder<void>(
|
||||
future: waitForFirstSync(context),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue