Fix "add user" admin api error when request contains a "msisdn" threepid (#13263)

Co-authored-by: Thomas Weston <thomas.weston@clearspancloud.com>
Co-authored-by: David Robertson <david.m.robertson1@gmail.com>
This commit is contained in:
Thomas Weston 2022-07-13 11:33:21 +01:00 committed by GitHub
parent 1381563988
commit 0312ff44c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 0 deletions

1
changelog.d/13263.bugfix Normal file
View file

@ -0,0 +1 @@
Fix a bug introduced in Synapse 1.15.0 where adding a user through the Synapse Admin API with a phone number would fail if the "enable_email_notifs" and "email_notifs_for_new_users" options were enabled. Contributed by @thomasweston12.