diff options
author | Marvin W <git@larma.de> | 2017-03-12 02:28:23 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-12 03:17:21 +0100 |
commit | a9ea0e9f87e71c60bc570066525d3e3634fbdcc0 (patch) | |
tree | e0db0fdd3cae07ee731de8e6ea1b112537323ebc /plugins/omemo/src/encryption_list_entry.vala | |
parent | 7e1ecb34cb1eca2b74949c7ddc2ad52fb02e3a77 (diff) | |
download | dino-a9ea0e9f87e71c60bc570066525d3e3634fbdcc0.tar.gz dino-a9ea0e9f87e71c60bc570066525d3e3634fbdcc0.zip |
Split OMEMO plug-in into files, various fixes
Diffstat (limited to 'plugins/omemo/src/encryption_list_entry.vala')
-rw-r--r-- | plugins/omemo/src/encryption_list_entry.vala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/omemo/src/encryption_list_entry.vala b/plugins/omemo/src/encryption_list_entry.vala new file mode 100644 index 00000000..753ffe67 --- /dev/null +++ b/plugins/omemo/src/encryption_list_entry.vala @@ -0,0 +1,23 @@ +namespace Dino.Plugins.Omemo { + +public class EncryptionListEntry : Plugins.EncryptionListEntry, Object { + private Plugin plugin; + + public EncryptionListEntry(Plugin plugin) { + this.plugin = plugin; + } + + public Entities.Encryption encryption { get { + return Entities.Encryption.OMEMO; + }} + + public string name { get { + return "OMEMO"; + }} + + public bool can_encrypt(Entities.Conversation conversation) { + return Manager.get_instance(plugin.app.stream_interaction).can_encrypt(conversation); + } +} + +}
\ No newline at end of file |