diff options
Diffstat (limited to 'service/pixelated/config/app_factory.py')
-rw-r--r-- | service/pixelated/config/app_factory.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index f20b1229..5dcf60cb 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -39,6 +39,7 @@ from leap.common.events import ( events_pb2 as proto ) from twisted.web.server import Site +from .welcome_mail import check_welcome_mail_wrapper CREATE_KEYS_IF_KEYS_DONT_EXISTS_CALLBACK = 12345 @@ -117,6 +118,9 @@ def init_app(app, leap_home, leap_session): search_engine=search_engine, mail_service=mail_service)) + register(signal=proto.SOLEDAD_DONE_DATA_SYNC, + callback=check_welcome_mail_wrapper(pixelated_mailboxes.inbox())) + register(signal=proto.SOLEDAD_DONE_DATA_SYNC, uid=CREATE_KEYS_IF_KEYS_DONT_EXISTS_CALLBACK, callback=look_for_user_key_and_create_if_cant_find(leap_session)) |