Require device language when adding a pusher.

Because this seems like it might be useful to do sooner rather
than later.
This commit is contained in:
David Baker 2015-01-16 11:24:10 +00:00
parent 2ca2dbc821
commit 2d2953cf5f
5 changed files with 11 additions and 5 deletions

View file

@ -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: