summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorThomas Weston <thomasweston12@gmail.com>2022-07-13 11:33:21 +0100
committerGitHub <noreply@github.com>2022-07-13 11:33:21 +0100
commit0312ff44c69ba16371206fc42b9f886b24253bcd (patch)
treeb5d5cfdec89e3313273a9a0f2ec2b11aa560b36c /synapse/rest
parentInline URL preview documentation. (#13261) (diff)
downloadsynapse-0312ff44c69ba16371206fc42b9f886b24253bcd.tar.xz
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>
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/admin/users.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/admin/users.py b/synapse/rest/admin/users.py
index f0614a2897..ba2f7fa6d8 100644
--- a/synapse/rest/admin/users.py
+++ b/synapse/rest/admin/users.py
@@ -373,6 +373,7 @@ class UserRestServletV2(RestServlet):
                     if (
                         self.hs.config.email.email_enable_notifs
                         and self.hs.config.email.email_notif_for_new_users
+                        and medium == "email"
                     ):
                         await self.pusher_pool.add_pusher(
                             user_id=user_id,