summaryrefslogtreecommitdiff
path: root/service/pixelated/config
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2015-02-13 10:27:51 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2015-02-13 12:47:12 -0200
commitc52ce25ac49cdfdc1791bcb65c5262aec63dadbd (patch)
treed7c5ce18b12f9a86f4a0cb09cc163d4534ddbbeb /service/pixelated/config
parent2e88b9d9d68bae91cfde466edfc027f19f7c74b8 (diff)
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.
Diffstat (limited to 'service/pixelated/config')
-rw-r--r--service/pixelated/config/app_factory.py3
1 files changed, 2 insertions, 1 deletions
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,