diff --git a/lib/pages/settings_notifications/settings_notifications.dart b/lib/pages/settings_notifications/settings_notifications.dart index ff57f6ab..5f2d5ff5 100644 --- a/lib/pages/settings_notifications/settings_notifications.dart +++ b/lib/pages/settings_notifications/settings_notifications.dart @@ -58,14 +58,8 @@ class SettingsNotifications extends StatefulWidget { class SettingsNotificationsController extends State { bool? getNotificationSetting(NotificationSettingsItem item) { - // Until https://gitlab.com/famedly/company/frontend/famedlysdk/-/merge_requests/1124 is shipped - final pushRulesRaw = Matrix.of(context) - .client - .accountData['m.push_rules'] - ?.content - .tryGetMap('device'); - if (pushRulesRaw == null) return null; - final pushRules = PushRuleSet.fromJson(pushRulesRaw); + final pushRules = Matrix.of(context).client.globalPushRules; + if (pushRules == null) return null; switch (item.type) { case PushRuleKind.content: return pushRules.content