mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:26:06 -04:00
if an email pusher specifies a brand param, use it
This commit is contained in:
parent
07233a1ec8
commit
f84b89f0c6
2 changed files with 8 additions and 3 deletions
|
@ -72,7 +72,12 @@ class EmailPusher(object):
|
|||
self.processing = False
|
||||
|
||||
if self.hs.config.email_enable_notifs:
|
||||
self.mailer = Mailer(self.hs)
|
||||
if 'data' in pusherdict and 'brand' in pusherdict['data']:
|
||||
app_name = pusherdict['data']['brand']
|
||||
else:
|
||||
app_name = self.hs.config.email_app_name
|
||||
|
||||
self.mailer = Mailer(self.hs, app_name)
|
||||
else:
|
||||
self.mailer = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue