aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomcreateevent.cpp
diff options
context:
space:
mode:
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