aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity/encryption.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-02-14 14:55:59 +0100
committerfiaxh <git@lightrise.org>2022-07-27 20:34:20 +0200
commit7e7dcedaf31ee35499875491c9f569c575d28435 (patch)
tree0c5fee2b28baf320775fbc92b3c252e97d9d054f /libdino/src/entity/encryption.vala
parentf25bfb00969a7e09996da2d5500e6718f4cc0148 (diff)
downloaddino-7e7dcedaf31ee35499875491c9f569c575d28435.tar.gz
dino-7e7dcedaf31ee35499875491c9f569c575d28435.zip
Port from GTK3 to GTK4
Diffstat (limited to 'libdino/src/entity/encryption.vala')
-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