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

@ -37,9 +37,15 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
Widget build(BuildContext context) {
notificationChangeSub ??= Matrix.of(context)
.client
.onAccountData
.onSync
.stream
.where((u) => u.type == 'm.push_rules')
.where(
(syncUpdate) =>
syncUpdate.accountData?.any(
(accountData) => accountData.type == 'm.push_rules',
) ??
false,
)
.listen(
(u) => setState(() {}),
);