mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 20:18:35 -04:00
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:
parent
9a2f296fa2
commit
4fec5e57be
4 changed files with 23 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue