Only rebuild chat UI if the room is dirty

parent 5496a7ab
......@@ -31,7 +31,11 @@ class ChatBloc {
StreamSubscription syncSub;
ChatBloc(this.room) {
syncSub = syncBloc.stream.listen((_) => _shouldRefreshSubj.add(true));
syncSub = syncBloc.stream.listen((state) {
if (state.dirtyRooms.contains(room)) {
_shouldRefreshSubj.add(true);
}
});
}
List<Type> get ignoredEvents => ignoredEventsOf(room, isOverview: false);
......
......@@ -213,7 +213,7 @@ packages:
name: matrix_sdk
url: "https://pub.dartlang.org"
source: hosted
version: "0.19.6"
version: "0.19.8"
matrix_sdk_sqflite:
dependency: "direct main"
description:
......
......@@ -12,7 +12,7 @@ dependencies:
injector: ^1.0.8
matrix_sdk: ^0.19.6
matrix_sdk: ^0.19.8
matrix_sdk_sqflite: ^0.15.1
rxdart: ^0.22.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment