You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
watcha-synapse/synapse/push/pusher.py

15 lines
361 B

from httppusher import HttpPusher
def create_pusher(hs, pusherdict):
PUSHER_TYPES = {
"http": HttpPusher,
}
if hs.config.email_enable_notifs:
from emailpusher import EmailPusher
PUSHER_TYPES["email"] = EmailPusher
if pusherdict['kind'] in PUSHER_TYPES:
return PUSHER_TYPES[pusherdict['kind']](hs, pusherdict)