From cca94272fa9dc47f23585e3a33484384734c62bc Mon Sep 17 00:00:00 2001
From: Erik Johnston <erik@matrix.org>
Date: Tue, 6 Jun 2017 11:50:07 +0100
Subject: [PATCH] Fix typo when getting app name

---
 synapse/push/pusher.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/synapse/push/pusher.py b/synapse/push/pusher.py
index f2c8eb870f..491f27bded 100644
--- a/synapse/push/pusher.py
+++ b/synapse/push/pusher.py
@@ -58,7 +58,7 @@ class PusherFactory(object):
             return self.pusher_types[pusherdict['kind']](self.hs, pusherdict)
 
     def _create_email_pusher(self, _hs, pusherdict):
-        app_name = self._brand_from_pusherdict
+        app_name = self._app_name_from_pusherdict(pusherdict)
         mailer = self.mailers.get(app_name)
         if not mailer:
             mailer = Mailer(
-- 
GitLab