From c52ce25ac49cdfdc1791bcb65c5262aec63dadbd Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Fri, 13 Feb 2015 10:27:51 -0200 Subject: Adding encryption info for a recipient when composing. To do that we look into the KeysResouce to see if we will find a key for each address entered for the recipients. --- service/pixelated/config/app_factory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'service/pixelated/config') diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index 8281ea97..8671eaa6 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -96,6 +96,7 @@ def stop_incoming_mail_fetcher(reactor_stop_function, leap_session): def init_app(app, leap_home, leap_session): leap_session.start_background_jobs() + keymanager = leap_session.nicknym.keymanager soledad_querier = SoledadQuerier(soledad=leap_session.account._soledad) @@ -110,7 +111,7 @@ def init_app(app, leap_home, leap_session): MailboxIndexerListener.SEARCH_ENGINE = search_engine InputMail.FROM_EMAIL_ADDRESS = leap_session.account_email() - app.resource.initialize(soledad_querier, search_engine, mail_service, draft_service) + app.resource.initialize(soledad_querier, keymanager, search_engine, mail_service, draft_service) register(signal=proto.SOLEDAD_DONE_DATA_SYNC, callback=init_index_and_remove_dupes(querier=soledad_querier, -- cgit v1.2.3