aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomcreateevent.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-14 22:34:41 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-14 22:34:41 +0100
commitc919c021be42228ff615e581a2f80e649c992807 (patch)
tree87f290b8a47ee0c206a3fb461bb2406a93a140be /lib/events/roomcreateevent.cpp
parent8f4c7f67930be402836ca7a6266ba4277266a12d (diff)
downloadlibquotient-c919c021be42228ff615e581a2f80e649c992807.tar.gz
libquotient-c919c021be42228ff615e581a2f80e649c992807.zip
Cleanup
Diffstat (limited to 'lib/events/roomcreateevent.cpp')
-rw-r--r--lib/events/roomcreateevent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/roomcreateevent.cpp b/lib/events/roomcreateevent.cpp
index c72b5bc2..0fc7d6b9 100644
--- a/lib/events/roomcreateevent.cpp
+++ b/lib/events/roomcreateevent.cpp
@@ -33,8 +33,8 @@ QString RoomCreateEvent::version() const
RoomCreateEvent::Predecessor RoomCreateEvent::predecessor() const
{
const auto predJson = contentJson()["predecessor"_ls].toObject();
- return { fromJson<QString>(predJson["room_id"_ls]),
- fromJson<QString>(predJson["event_id"_ls]) };
+ return { fromJson<QString>(predJson[RoomIdKeyL]),
+ fromJson<QString>(predJson[EventIdKeyL]) };
}
bool RoomCreateEvent::isUpgrade() const