Don't show Notifications Prompt Toast if user has master rule enabled
This commit is contained in:
parent
c68a980c59
commit
493d3ae288
2 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,7 @@ import {PushProcessor} from "matrix-js-sdk/src/pushprocessor";
|
|||
|
||||
// .m.rule.master being enabled means all events match that push rule
|
||||
// default action on this rule is dont_notify, but it could be something else
|
||||
function isPushNotifyDisabled(): boolean {
|
||||
export function isPushNotifyDisabled(): boolean {
|
||||
// Return the value of the master push rule as a default
|
||||
const processor = new PushProcessor(MatrixClientPeg.get());
|
||||
const masterRule = processor.getPushRuleById(".m.rule.master");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue