aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomevent.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/roomevent.h')
-rw-r--r--lib/events/roomevent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/events/roomevent.h b/lib/events/roomevent.h
index fea509c0..3abd56c0 100644
--- a/lib/events/roomevent.h
+++ b/lib/events/roomevent.h
@@ -37,6 +37,10 @@ public:
}
QString roomId() const;
QString senderId() const;
+ //! \brief Determine whether the event has been replaced
+ //!
+ //! \return true if this event has been overridden by another event
+ //! with `"rel_type": "m.replace"`; false otherwise
bool isReplaced() const;
QString replacedBy() const;
bool isRedacted() const { return bool(_redactedBecause); }