aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/entity')
-rw-r--r--libdino/src/entity/encryption.vala10
1 files changed, 7 insertions, 3 deletions
diff --git a/libdino/src/entity/encryption.vala b/libdino/src/entity/encryption.vala
index 193d741b..ab5a0ae0 100644
--- a/libdino/src/entity/encryption.vala
+++ b/libdino/src/entity/encryption.vala
@@ -1,12 +1,16 @@
namespace Dino.Entities {
-public enum Encryption {
+ public enum Encryption {
NONE,
PGP,
OMEMO,
DTLS_SRTP,
SRTP,
- UNKNOWN,
-}
+ UNKNOWN;
+
+ public bool is_some() {
+ return this != NONE;
+ }
+ }
} \ No newline at end of file