refactor: Update to Matrix Dart SDK 0.29.9

This commit is contained in:
Krille 2024-05-29 11:20:32 +02:00
commit 3d35a6adcf
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
10 changed files with 62 additions and 17 deletions

View file

@ -22,11 +22,13 @@ class SettingsNotificationsView extends StatelessWidget {
),
body: MaxWidthBody(
child: StreamBuilder(
stream: Matrix.of(context)
.client
.onAccountData
.stream
.where((event) => event.type == 'm.push_rules'),
stream: Matrix.of(context).client.onSync.stream.where(
(syncUpdate) =>
syncUpdate.accountData?.any(
(accountData) => accountData.type == 'm.push_rules',
) ??
false,
),
builder: (BuildContext context, _) {
return Column(
children: [