From 3accf7dfd82e8e14a7f90a8debee921f2f428679 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 1 Jan 2020 16:11:13 +0800 Subject: Fix linux build --- lib/events/roompowerlevelsevent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/events/roompowerlevelsevent.cpp') diff --git a/lib/events/roompowerlevelsevent.cpp b/lib/events/roompowerlevelsevent.cpp index c2721595..0a401752 100644 --- a/lib/events/roompowerlevelsevent.cpp +++ b/lib/events/roompowerlevelsevent.cpp @@ -14,7 +14,7 @@ PowerLevelsEventContent::PowerLevelsEventContent(const QJsonObject& json) : stateDefault(json["state_default"_ls].toInt(0)), users(fromJson>(json["users"_ls])), usersDefault(json["users_default"_ls].toInt(0)), - notifications(Notifications{json["notifications"_ls]["room"_ls].toInt(50)}) + notifications(Notifications{json["notifications"_ls].toObject()["room"_ls].toInt(50)}) { } -- cgit v1.2.3