globalPushRules property

PushRuleSet? get globalPushRules

Returns the global push rules for the logged in user.

Implementation

PushRuleSet? get globalPushRules {
  final pushrules = _accountData['m.push_rules']
      ?.content
      .tryGetMap<String, Object?>('global');
  return pushrules != null ? TryGetPushRule.tryFromJson(pushrules) : null;
}