aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roompowerlevelsevent.cpp
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2020-01-01 15:44:10 +0800
committerBlack Hat <bhat@encom.eu.org>2020-01-01 15:44:10 +0800
commit285cff6584c48575d4ce49739d7006c21cc91a3f (patch)
tree68001229aaf2cade8232c5f7d11601e690c89417 /lib/events/roompowerlevelsevent.cpp
parentd4034fb12b189156e135dcf0fb94960a1d8e9be9 (diff)
downloadlibquotient-285cff6584c48575d4ce49739d7006c21cc91a3f.tar.gz
libquotient-285cff6584c48575d4ce49739d7006c21cc91a3f.zip
Fix linux build
Diffstat (limited to 'lib/events/roompowerlevelsevent.cpp')
-rw-r--r--lib/events/roompowerlevelsevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/roompowerlevelsevent.cpp b/lib/events/roompowerlevelsevent.cpp
index 98588142..c2721595 100644
--- a/lib/events/roompowerlevelsevent.cpp
+++ b/lib/events/roompowerlevelsevent.cpp
@@ -28,7 +28,7 @@ void PowerLevelsEventContent::fillJson(QJsonObject* o) const {
o->insert(QStringLiteral("state_default"), stateDefault);
o->insert(QStringLiteral("users"), Quotient::toJson(users));
o->insert(QStringLiteral("users_default"), usersDefault);
- o->insert(QStringLiteral("notifications"), {{"room", notifications.room}});
+ o->insert(QStringLiteral("notifications"), QJsonObject{{"room", notifications.room}});
}
int RoomPowerLevelsEvent::powerLevelForEvent(const QString &eventId) const {