diff options
author | David Baker <dave@matrix.org> | 2016-04-21 19:19:07 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-21 19:19:07 +0100 |
commit | c10ed26c303741fe0e43f11e2fbeeb148f466b17 (patch) | |
tree | bdd406d8db391cf0f2182a65666971d39953f3e0 /synapse/push/emailpusher.py | |
parent | Generate mails from a template (diff) | |
download | synapse-c10ed26c303741fe0e43f11e2fbeeb148f466b17.tar.xz |
Flesh out email templating
Mostly WIP porting the room name calculation logic from the web client so our room names in the email mirror the clients.
Diffstat (limited to 'synapse/push/emailpusher.py')
-rw-r--r-- | synapse/push/emailpusher.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/push/emailpusher.py b/synapse/push/emailpusher.py index 4e21221fb7..7c810029fa 100644 --- a/synapse/push/emailpusher.py +++ b/synapse/push/emailpusher.py @@ -83,6 +83,13 @@ class EmailPusher(object): yield self._process() @defer.inlineCallbacks + def on_new_receipts(self, min_stream_id, max_stream_id): + # We could wake up and cancel the timer but there tend to be quite a + # lot of read receipts so it's probably less work to just let the + # timer fire + return defer.succeed(None) + + @defer.inlineCallbacks def on_timer(self): self.timed_call = None yield self._process() |