This commit is contained in:
Krombel 2017-09-23 15:53:15 +02:00
parent 6746d5e53c
commit 9177ae7151

View File

@ -133,7 +133,8 @@ JoinedRoom::deserialize(const QJsonValue &data)
if (state.contains("events")) {
if (!state.value("events").isArray()) {
throw DeserializationException("join/state/events should be an array");
throw DeserializationException(
"join/state/events should be an array");
}
state_.deserialize(state.value("events"));
@ -168,7 +169,8 @@ JoinedRoom::deserialize(const QJsonValue &data)
if (object.contains("unread_notifications")) {
if (!object.value("unread_notifications").isObject()) {
throw DeserializationException("join/unread_notifications is not a JSON object");
throw DeserializationException(
"join/unread_notifications is not a JSON object");
}
QJsonObject unreadNotifications = object.value("unread_notifications").toObject();