aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomevent.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-02 09:02:31 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-02 09:02:43 +0200
commitea1e849f617f62b3d209b2019e0daa3c6bed50f0 (patch)
treea8584706b89a47a67564618c49fdae1011c0a091 /lib/events/roomevent.h
parent5c3f853a04a0c1a2b360391a9f27e7c0fd9f42bd (diff)
downloadlibquotient-ea1e849f617f62b3d209b2019e0daa3c6bed50f0.tar.gz
libquotient-ea1e849f617f62b3d209b2019e0daa3c6bed50f0.zip
More doc-comments
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); }