aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/encryptionevent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/events/encryptionevent.h b/lib/events/encryptionevent.h
index c73e5598..945b17e7 100644
--- a/lib/events/encryptionevent.h
+++ b/lib/events/encryptionevent.h
@@ -52,6 +52,8 @@ public:
QString algorithm() const { return content().algorithm; }
int rotationPeriodMs() const { return content().rotationPeriodMs; }
int rotationPeriodMsgs() const { return content().rotationPeriodMsgs; }
+
+ bool useEncryption() const { return !algorithm().isEmpty(); }
};
REGISTER_EVENT_TYPE(EncryptionEvent)
} // namespace Quotient