changeset 5b895f6c9249 in /home/hg/repos/gajim
branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=5b895f6c9249 description: read assigned GPG key when creating the contacts. fixes: #7111
diffstat:
src/gui_interface.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 5b2f3b22ed6c -r 5b895f6c9249 src/gui_interface.py --- a/src/gui_interface.py Tue Jul 16 18:03:58 2013 +0200 +++ b/src/gui_interface.py Tue Jul 16 18:28:17 2013 +0200 @@ -773,9 +773,14 @@ if obj.sub == 'remove': return # Add new contact to roster + keyID = '' + attached_keys = gajim.config.get_per('accounts', account, + 'attached_gpg_keys').split() + if obj.jid in attached_keys: + keyID = attached_keys[attached_keys.index(obj.jid) + 1] contact = gajim.contacts.create_contact(jid=obj.jid, account=account, name=obj.nickname, groups=obj.groups, - show='offline', sub=obj.sub, ask=obj.ask) + show='offline', sub=obj.sub, ask=obj.ask, keyID=keyID) gajim.contacts.add_contact(account, contact) self.roster.add_contact(obj.jid, account) else: