From b16af5ef6454db3cf32eb28641947fe9787fb30c Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 15 Feb 2016 16:41:47 +0000 Subject: [PATCH] Fix JSON, add headers --- specification/modules/push.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/specification/modules/push.rst b/specification/modules/push.rst index d0c3968ce..11ce81549 100644 --- a/specification/modules/push.rst +++ b/specification/modules/push.rst @@ -207,6 +207,7 @@ Default Override Rules ^^^^^^^^^^^^^^^^^^^^^^ ``m.rule.master`` +````````````````` Matches all events, this can be enabled to turn off all push notifications other than those generated by override rules set by the user. By default this rule is disabled. @@ -216,7 +217,7 @@ Default Override Rules .. code:: json { - "rule_id": ".m.rule.master, + "rule_id": ".m.rule.master", "default": true, "enabled": false, "conditions": [], @@ -226,6 +227,7 @@ Default Override Rules } ``.m.rule.suppress_notices`` +```````````````````````````` Matches messages with a ``msgtype`` of ``notice``. This should be an ``override`` rule so that it takes priority over ``content`` / ``sender`` / ``room`` rules. @@ -238,7 +240,7 @@ Default Override Rules "rule_id": ".m.rule.suppress_notices", "default": true, "enabled": true, - "conditions': [ + "conditions": [ { "kind": "event_match", "key": "content.msgtype", @@ -255,6 +257,7 @@ Default Content Rules ^^^^^^^^^^^^^^^^^^^^^ ``.m.rule.contains_user_name`` +`````````````````````````````` Matches any message whose content is unencrypted and contains the local part of the user's Matrix ID, separated by word boundaries. @@ -280,6 +283,7 @@ Default Underride Rules ^^^^^^^^^^^^^^^^^^^^^^^ ``.m.rule.call`` +```````````````` Matches any incoming VOIP call. Definition: @@ -312,6 +316,7 @@ Default Underride Rules ``.m.rule.contains_display_name`` +````````````````````````````````` Matches any message whose content is unencrypted and contains the user's current display name in the room in which it was sent. @@ -341,6 +346,7 @@ Default Underride Rules } ``.m.rule.room_one_to_one`` +``````````````````````````` Matches any message sent in a room with exactly two members. Definition: @@ -367,10 +373,11 @@ Default Underride Rules "set_tweak": "highlight", "value": false } - ], + ] } ``.m.rule.invite_for_me`` +````````````````````````` Matches any invites to a new room for this user. Definition: @@ -412,6 +419,7 @@ Default Underride Rules } ``.m.rule.member_event`` +```````````````````````` Matches membership change events. Definition: @@ -439,6 +447,7 @@ Default Underride Rules } ``.m.rule.message`` +``````````````````` Matches all chat messages. Definition: