summary refs log tree commit diff
path: root/synapse/push/httppusher.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-11-06 10:49:20 +0000
committerRichard van der Hoff <richard@matrix.org>2018-11-06 10:49:20 +0000
commit34406cf22cf35f432e8c13d5e203c05ebeceabfd (patch)
treeb135a765bacbf85e14e4ad845e2bc59baf01fc8f /synapse/push/httppusher.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentAdd config variables for enabling terms auth and the policy name (#4142) (diff)
downloadsynapse-34406cf22cf35f432e8c13d5e203c05ebeceabfd.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r--synapse/push/httppusher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py

index bae30dc5ee..82ab18acae 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py
@@ -311,10 +311,10 @@ class HttpPusher(object): ] } } - if event.type == 'm.room.member': + if event.type == 'm.room.member' and event.is_state(): d['notification']['membership'] = event.content['membership'] d['notification']['user_is_target'] = event.state_key == self.user_id - if self.hs.config.push_include_content and 'content' in event: + if self.hs.config.push_include_content and event.content: d['notification']['content'] = event.content # We no longer send aliases separately, instead, we send the human