Created
March 12, 2021 20:20
-
-
Save qalqi/e4b48ef42898402d5723aa78be4cafe0 to your computer and use it in GitHub Desktop.
/_matrix/client/r0/pushrules/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"content": [ | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "sound", | |
"value": "default" | |
}, | |
{ | |
"set_tweak": "highlight" | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.contains_user_name", | |
"pattern": "pavan" | |
} | |
], | |
"override": [ | |
{ | |
"actions": [ | |
"dont_notify" | |
], | |
"default": true, | |
"enabled": false, | |
"rule_id": ".m.rule.master", | |
"conditions": [] | |
}, | |
{ | |
"actions": [ | |
"dont_notify" | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.suppress_notices", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "content.msgtype", | |
"pattern": "m.notice" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "sound", | |
"value": "default" | |
}, | |
{ | |
"set_tweak": "highlight", | |
"value": false | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.invite_for_me", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "content.membership", | |
"pattern": "m.invite" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"dont_notify" | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.member_event", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "content.membership", | |
"pattern": "type" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "sound", | |
"value": "default" | |
}, | |
{ | |
"set_tweak": "highlight" | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.contains_display_name", | |
"conditions": [ | |
{ | |
"kind": "contains_display_name" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "highlight" | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.tombstone", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "type", | |
"pattern": "m.room.tombstone" | |
}, | |
{ | |
"kind": "event_match", | |
"key": "state_key", | |
"pattern": "" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "highlight" | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.roomnotif", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "content.body", | |
"pattern": "@room" | |
}, | |
{ | |
"kind": "sender_notification_permission", | |
"key": "room" | |
} | |
] | |
} | |
], | |
"room": [], | |
"sender": [], | |
"underride": [ | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "sound", | |
"value": "ring" | |
}, | |
{ | |
"set_tweak": "highlight", | |
"value": false | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.call", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "type", | |
"pattern": "m.call.invite" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "sound", | |
"value": "default" | |
}, | |
{ | |
"set_tweak": "highlight", | |
"value": false | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.encrypted_room_one_to_one", | |
"conditions": [ | |
{ | |
"kind": "room_member_count", | |
"is": ">=2" | |
}, | |
{ | |
"kind": "event_match", | |
"key": "type", | |
"pattern": "m.room.encrypted" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "sound", | |
"value": "default" | |
}, | |
{ | |
"set_tweak": "highlight", | |
"value": false | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.room_one_to_one", | |
"conditions": [ | |
{ | |
"kind": "room_member_count", | |
"is": ">=2" | |
}, | |
{ | |
"kind": "event_match", | |
"key": "type", | |
"pattern": "m.room.message" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "highlight", | |
"value": false | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.message", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "type", | |
"pattern": "m.room.message" | |
} | |
] | |
}, | |
{ | |
"actions": [ | |
"notify", | |
{ | |
"set_tweak": "highlight", | |
"value": false | |
} | |
], | |
"default": true, | |
"enabled": true, | |
"rule_id": ".m.rule.encrypted", | |
"conditions": [ | |
{ | |
"kind": "event_match", | |
"key": "type", | |
"pattern": "m.room.encrypted" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment