anotherim-desktop/plugins/omemo/src/encryption_list_entry.vala

24 lines
558 B
Vala
Raw Normal View History

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) {
2017-08-25 19:20:09 +00:00
return plugin.app.stream_interactor.get_module(Manager.IDENTITY).can_encrypt(conversation);
}
}
2017-08-25 19:20:09 +00:00
}