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/message_flag.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/message_flag.vala')
-rw-r--r-- | plugins/omemo/src/message_flag.vala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/omemo/src/message_flag.vala b/plugins/omemo/src/message_flag.vala new file mode 100644 index 00000000..cea1e9b2 --- /dev/null +++ b/plugins/omemo/src/message_flag.vala @@ -0,0 +1,23 @@ +using Xmpp; + +namespace Dino.Plugins.Omemo { + +public class MessageFlag : Message.MessageFlag { + public const string id = "omemo"; + + public bool decrypted = false; + + public static MessageFlag? get_flag(Message.Stanza message) { + return (MessageFlag) message.get_flag(NS_URI, id); + } + + public override string get_ns() { + return NS_URI; + } + + public override string get_id() { + return id; + } +} + +}
\ No newline at end of file |