diff options
author | David Baker <dave@matrix.org> | 2016-04-28 16:59:57 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-28 16:59:57 +0100 |
commit | 68f8fc2f143d44b560b07e7521b28aae332e243d (patch) | |
tree | f5edd1974065984f98c14cbcb2ef13ab0b298ec0 /synapse/push | |
parent | Support image notifs (diff) | |
download | synapse-68f8fc2f143d44b560b07e7521b28aae332e243d.tar.xz |
Support file messages & fix plain text
Diffstat (limited to '')
-rw-r--r-- | synapse/push/mailer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py index e6554dc7fd..60a4878a3e 100644 --- a/synapse/push/mailer.py +++ b/synapse/push/mailer.py @@ -222,8 +222,9 @@ class Mailer(object): self.add_text_message_vars(ret, event) elif event.content["msgtype"] == "m.image": self.add_image_message_vars(ret, event) - else: - return None + + if "body" in event.content: + ret["body_text_plain"] = event.content["body"] return ret |