diff options
author | David Baker <dave@matrix.org> | 2015-01-16 11:24:10 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-16 11:24:10 +0000 |
commit | 2d2953cf5fce26625e56fc1abc230735d007ea1e (patch) | |
tree | f792d8e4067d5edf43e5bed876fe5d4ee11d8a51 /synapse/storage/pusher.py | |
parent | Send room name and first alias in notification poke. (diff) | |
download | synapse-2d2953cf5fce26625e56fc1abc230735d007ea1e.tar.xz |
Require device language when adding a pusher.
Because this seems like it might be useful to do sooner rather than later.
Diffstat (limited to 'synapse/storage/pusher.py')
-rw-r--r-- | synapse/storage/pusher.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/pusher.py b/synapse/storage/pusher.py index bfc4980256..4eb30c7bdf 100644 --- a/synapse/storage/pusher.py +++ b/synapse/storage/pusher.py @@ -94,7 +94,7 @@ class PusherStore(SQLBaseStore): @defer.inlineCallbacks def add_pusher(self, user_name, kind, app_id, app_display_name, device_display_name, - pushkey, pushkey_ts, data): + pushkey, pushkey_ts, lang, data): try: yield self._simple_upsert( PushersTable.table_name, @@ -108,6 +108,7 @@ class PusherStore(SQLBaseStore): app_display_name=app_display_name, device_display_name=device_display_name, ts=pushkey_ts, + lang=lang, data=data )) except Exception as e: |