aboutsummaryrefslogtreecommitdiff
path: root/lib/events/stateevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/stateevent.cpp')
-rw-r--r--lib/events/stateevent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/events/stateevent.cpp b/lib/events/stateevent.cpp
index 280c334c..fd8079be 100644
--- a/lib/events/stateevent.cpp
+++ b/lib/events/stateevent.cpp
@@ -29,6 +29,11 @@ bool StateEventBase::repeatsState() const
return fullJson().value(ContentKeyL) == prevContentJson;
}
+QString StateEventBase::replacedState() const
+{
+ return unsignedJson().value("replaces_state"_ls).toString();
+}
+
void StateEventBase::dumpTo(QDebug dbg) const
{
if (!stateKey().isEmpty())