diff options
author | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-25 21:27:26 +0100 |
---|---|---|
committer | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-25 21:27:26 +0100 |
commit | 7e156b3a7510eaad212dfe0c72dc8aba8bda0e57 (patch) | |
tree | ffac2a81864e4abff4195a454cd72f1f50a0127f /plugins/omemo/src/contact_details_dialog.vala | |
parent | f2283778f6ef855a8ca91fb35fd737a8422c7d4d (diff) | |
download | dino-7e156b3a7510eaad212dfe0c72dc8aba8bda0e57.tar.gz dino-7e156b3a7510eaad212dfe0c72dc8aba8bda0e57.zip |
Code cleanup: create new trust management class
Diffstat (limited to 'plugins/omemo/src/contact_details_dialog.vala')
-rw-r--r-- | plugins/omemo/src/contact_details_dialog.vala | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/omemo/src/contact_details_dialog.vala b/plugins/omemo/src/contact_details_dialog.vala index 70bf1dd7..11bed0c1 100644 --- a/plugins/omemo/src/contact_details_dialog.vala +++ b/plugins/omemo/src/contact_details_dialog.vala @@ -37,14 +37,6 @@ public class ContactDetailsDialog : Gtk.Dialog { .with(plugin.db.identity_meta.address_name, "=", device[plugin.db.identity_meta.address_name]) .with(plugin.db.identity_meta.device_id, "=", device[plugin.db.identity_meta.device_id]) .set(plugin.db.identity_meta.trust_level, trust_level).perform(); - - if (!own) { - if(!trust) { - plugin.app.stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).untrust_device(jid, device[plugin.db.identity_meta.device_id]); - } else { - plugin.app.stream_interactor.module_manager.get_module(account, StreamModule.IDENTITY).trust_device(jid, device[plugin.db.identity_meta.device_id]); - } - } } private void add_fingerprint(Row device, int row, Database.IdentityMetaTable.TrustLevel trust) { |