refactor: Use onRoomState stream instead of room.onUpdate to not update on messages but state changes only

This commit is contained in:
krille-chan 2024-05-19 07:52:18 +02:00
commit ff54610e5b
No known key found for this signature in database
6 changed files with 12 additions and 6 deletions

View file

@ -22,7 +22,8 @@ class ChatAccessSettingsPageView extends StatelessWidget {
),
body: MaxWidthBody(
child: StreamBuilder<Object>(
stream: room.onUpdate.stream,
stream: room.client.onRoomState.stream
.where((update) => update.roomId == controller.room.id),
builder: (context, snapshot) {
final canonicalAlias = room.canonicalAlias;
final altAliases = room