refactor: Update to Matrix Dart SDK 0.29.9
This commit is contained in:
parent
bfd8d7f99c
commit
3d35a6adcf
10 changed files with 62 additions and 17 deletions
|
|
@ -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(() {}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue