Default device_display_name to null

It turns out that it's more useful to return a null device display name (and
let clients decide how to handle it: eg, falling back to device_id) than using
a constant string like "unknown device".
This commit is contained in:
Richard van der Hoff 2016-08-03 11:39:39 +01:00
parent 9a2f296fa2
commit 4fec5e57be
4 changed files with 23 additions and 5 deletions

View file

@ -29,7 +29,7 @@ class DeviceHandler(BaseHandler):
@defer.inlineCallbacks
def check_device_registered(self, user_id, device_id,
initial_device_display_name):
initial_device_display_name = None):
"""
If the given device has not been registered, register it with the
supplied display name.