diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-06-08 11:15:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 11:15:02 -0400 |
commit | 3c45a7809036126a44636f8aaffd42bbc633b9ac (patch) | |
tree | 3835c5cc9f3fa2a39c55dbb88b0fe28cf134e4c9 /synapse/module_api/__init__.py | |
parent | Accept device information at the login fallback endpoint. (#7629) (diff) | |
download | synapse-3c45a7809036126a44636f8aaffd42bbc633b9ac.tar.xz |
Convert the registration handler to async/await. (#7649)
Diffstat (limited to 'synapse/module_api/__init__.py')
-rw-r--r-- | synapse/module_api/__init__.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index d678c0eb9b..ecdf1ad69f 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -128,8 +128,12 @@ class ModuleApi(object): Returns: Deferred[str]: user_id """ - return self._hs.get_registration_handler().register_user( - localpart=localpart, default_display_name=displayname, bind_emails=emails + return defer.ensureDeferred( + self._hs.get_registration_handler().register_user( + localpart=localpart, + default_display_name=displayname, + bind_emails=emails, + ) ) def register_device(self, user_id, device_id=None, initial_display_name=None): |