aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-27 18:34:28 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-27 18:34:28 +0900
commit84aa055bba602635599def37915b96ccf3f63484 (patch)
tree59857c792f913871ab70385fb7e9f037fa58973a /lib/events/roomevent.cpp
parent284b751ee424985341812a32721227112160a905 (diff)
parentc7e4d01c479452aad4616ee2d5a285f4fe0565aa (diff)
downloadlibquotient-84aa055bba602635599def37915b96ccf3f63484.tar.gz
libquotient-84aa055bba602635599def37915b96ccf3f63484.zip
Merge branch 'kitsune-local-echo'
Diffstat (limited to 'lib/events/roomevent.cpp')
-rw-r--r--lib/events/roomevent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/events/roomevent.cpp b/lib/events/roomevent.cpp
index 3d09af8a..75850772 100644
--- a/lib/events/roomevent.cpp
+++ b/lib/events/roomevent.cpp
@@ -75,6 +75,11 @@ QString RoomEvent::redactionReason() const
return isRedacted() ? _redactedBecause->reason() : QString{};
}
+QString RoomEvent::stateKey() const
+{
+ return fullJson()["state_key"_ls].toString();
+}
+
void RoomEvent::addId(const QString& newId)
{
Q_ASSERT(id().isEmpty()); Q_ASSERT(!newId.isEmpty());