summary refs log tree commit diff
path: root/synapse/push/pusher.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-09-15 08:34:52 -0400
committerGitHub <noreply@github.com>2021-09-15 08:34:52 -0400
commit8c7a531e277f98ac6b7981b9738649f3a70feb94 (patch)
treea6e0088d17ee9c12218d3c21bc163f5cc7231848 /synapse/push/pusher.py
parentVerify `?chunk_id` actually corresponds to an insertion event that exists (MS... (diff)
downloadsynapse-8c7a531e277f98ac6b7981b9738649f3a70feb94.tar.xz
Use direct references for some configuration variables (part 2) (#10812)
Diffstat (limited to 'synapse/push/pusher.py')
-rw-r--r--synapse/push/pusher.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/push/pusher.py b/synapse/push/pusher.py
index 021275437c..29ed346d37 100644
--- a/synapse/push/pusher.py
+++ b/synapse/push/pusher.py
@@ -35,12 +35,12 @@ class PusherFactory:
             "http": HttpPusher
         }
 
-        logger.info("email enable notifs: %r", hs.config.email_enable_notifs)
-        if hs.config.email_enable_notifs:
+        logger.info("email enable notifs: %r", hs.config.email.email_enable_notifs)
+        if hs.config.email.email_enable_notifs:
             self.mailers: Dict[str, Mailer] = {}
 
-            self._notif_template_html = hs.config.email_notif_template_html
-            self._notif_template_text = hs.config.email_notif_template_text
+            self._notif_template_html = hs.config.email.email_notif_template_html
+            self._notif_template_text = hs.config.email.email_notif_template_text
 
             self.pusher_types["email"] = self._create_email_pusher