aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/events/roomevent.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/events/roomevent.h b/lib/events/roomevent.h
index 3abd56c0..3174764f 100644
--- a/lib/events/roomevent.h
+++ b/lib/events/roomevent.h
@@ -14,7 +14,9 @@ class RedactionEvent;
class RoomEvent : public Event {
Q_GADGET
Q_PROPERTY(QString id READ id)
- Q_PROPERTY(QDateTime timestamp READ timestamp CONSTANT)
+ //! \deprecated Use originTimestamp instead
+ Q_PROPERTY(QDateTime timestamp READ originTimestamp CONSTANT)
+ Q_PROPERTY(QDateTime originTimestamp READ originTimestamp CONSTANT)
Q_PROPERTY(QString roomId READ roomId CONSTANT)
Q_PROPERTY(QString senderId READ senderId CONSTANT)
Q_PROPERTY(QString redactionReason READ redactionReason)
@@ -32,9 +34,6 @@ public:
QString id() const;
QDateTime originTimestamp() const;
- [[deprecated("Use originTimestamp()")]] QDateTime timestamp() const {
- return originTimestamp();
- }
QString roomId() const;
QString senderId() const;
//! \brief Determine whether the event has been replaced