diff options
author | Black Hat <bhat@encom.eu.org> | 2020-01-01 16:11:13 +0800 |
---|---|---|
committer | Black Hat <bhat@encom.eu.org> | 2020-01-01 16:11:13 +0800 |
commit | 3accf7dfd82e8e14a7f90a8debee921f2f428679 (patch) | |
tree | 5b1e7314505fb5e0b2bd8289f7b6fdd6d01ffd47 /lib/events/roompowerlevelsevent.cpp | |
parent | 285cff6584c48575d4ce49739d7006c21cc91a3f (diff) | |
download | libquotient-3accf7dfd82e8e14a7f90a8debee921f2f428679.tar.gz libquotient-3accf7dfd82e8e14a7f90a8debee921f2f428679.zip |
Fix linux build
Diffstat (limited to 'lib/events/roompowerlevelsevent.cpp')
-rw-r--r-- | lib/events/roompowerlevelsevent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<QHash<QString, int>>(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)}) { } |