From 5407cc8e05be23631aa009e99f9a15bd4507b045 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 4 Mar 2016 14:41:30 +0000 Subject: [PATCH 1/2] Add a snippet of documentation for a m.push_rules event. --- specification/modules/push.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/modules/push.rst b/specification/modules/push.rst index 2a8308d8b..c6bad28cc 100644 --- a/specification/modules/push.rst +++ b/specification/modules/push.rst @@ -336,6 +336,14 @@ using the APIs below. {{pushrules_http_api}} + +Push Rules: Events +~~~~~~~~~~~~~~~~~~ + +A user changes their push rules a ``m.push_rules`` event is sent to all clients +in the ``account_data`` section of their next /sync request. The content of the +event is the current push rules for the user. + Examples ++++++++ From c3c95d0c090bb967b0c43f888577c0960aaffe05 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 8 Mar 2016 10:17:27 +0000 Subject: [PATCH 2/2] Fix grammar and add backticks for /sync --- specification/modules/push.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/modules/push.rst b/specification/modules/push.rst index c6bad28cc..d8d64f6bf 100644 --- a/specification/modules/push.rst +++ b/specification/modules/push.rst @@ -340,9 +340,9 @@ using the APIs below. Push Rules: Events ~~~~~~~~~~~~~~~~~~ -A user changes their push rules a ``m.push_rules`` event is sent to all clients -in the ``account_data`` section of their next /sync request. The content of the -event is the current push rules for the user. +When a user changes their push rules a ``m.push_rules`` event is sent to all +clients in the ``account_data`` section of their next ``/sync`` request. The +content of the event is the current push rules for the user. Examples ++++++++