aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/trust_level.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-05-16 20:41:41 +0200
committerfiaxh <git@lightrise.org>2019-07-08 18:46:30 +0200
commita7aa5130f821252c17ffc5725e4240553248ad17 (patch)
treec84c211b4d3ee395ee5e460e187b8eeb0431f6c2 /plugins/omemo/src/trust_level.vala
parent837de4063dbe398735a5b1d35bde1821c177b555 (diff)
downloaddino-a7aa5130f821252c17ffc5725e4240553248ad17.tar.gz
dino-a7aa5130f821252c17ffc5725e4240553248ad17.zip
OMEMO code cleanup: Move TrustLevel out of Database
Diffstat (limited to 'plugins/omemo/src/trust_level.vala')
-rw-r--r--plugins/omemo/src/trust_level.vala15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/omemo/src/trust_level.vala b/plugins/omemo/src/trust_level.vala
new file mode 100644
index 00000000..afcfb0fb
--- /dev/null
+++ b/plugins/omemo/src/trust_level.vala
@@ -0,0 +1,15 @@
+namespace Dino.Plugins.Omemo {
+
+public enum TrustLevel {
+ VERIFIED,
+ TRUSTED,
+ UNTRUSTED,
+ UNKNOWN;
+
+ public string to_string() {
+ int val = this;
+ return val.to_string();
+ }
+}
+
+}