diff options
author | Tobias Fella <fella@posteo.de> | 2021-12-09 23:26:24 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-09 23:59:53 +0100 |
commit | 58798ce15f0f235d64f9c34b3f8c013678ebf25f (patch) | |
tree | cf52da0354f63c14adc3ea70d3c18e1b2ece15fc /lib/events/roomevent.h | |
parent | 1f6771c3b14453ae9b6651a9edb1f7778d3f71f3 (diff) | |
download | libquotient-58798ce15f0f235d64f9c34b3f8c013678ebf25f.tar.gz libquotient-58798ce15f0f235d64f9c34b3f8c013678ebf25f.zip |
Ifdef all the things
Diffstat (limited to 'lib/events/roomevent.h')
-rw-r--r-- | lib/events/roomevent.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/events/roomevent.h b/lib/events/roomevent.h index 35527a62..36b45f09 100644 --- a/lib/events/roomevent.h +++ b/lib/events/roomevent.h @@ -60,15 +60,20 @@ public: //! callback for that in RoomEvent. void addId(const QString& newId); +#ifdef Quotient_E2EE_ENABLED void setOriginalEvent(event_ptr_tt<RoomEvent> originalEvent); const QJsonObject encryptedJson() const; +#endif protected: void dumpTo(QDebug dbg) const override; private: event_ptr_tt<RedactionEvent> _redactedBecause; + +#ifdef Quotient_E2EE_ENABLED event_ptr_tt<RoomEvent> _originalEvent; +#endif }; using RoomEventPtr = event_ptr_tt<RoomEvent>; using RoomEvents = EventsArray<RoomEvent>; |