mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-30 08:06:30 -05:00
Minor typing fixes (#12034)
These started failing in https://github.com/matrix-org/synapse/pull/12031... I'm a bit mystified by how they ever worked.
This commit is contained in:
parent
7c82da27aa
commit
a85dde3445
4 changed files with 19 additions and 16 deletions
|
|
@ -320,12 +320,12 @@ class RegistrationHandler:
|
|||
if fail_count > 10:
|
||||
raise SynapseError(500, "Unable to find a suitable guest user ID")
|
||||
|
||||
localpart = await self.store.generate_user_id()
|
||||
user = UserID(localpart, self.hs.hostname)
|
||||
generated_localpart = await self.store.generate_user_id()
|
||||
user = UserID(generated_localpart, self.hs.hostname)
|
||||
user_id = user.to_string()
|
||||
self.check_user_id_not_appservice_exclusive(user_id)
|
||||
if generate_display_name:
|
||||
default_display_name = localpart
|
||||
default_display_name = generated_localpart
|
||||
try:
|
||||
await self.register_with_store(
|
||||
user_id=user_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue