diff options
Diffstat (limited to 'lib/csapi/presence.cpp')
-rw-r--r-- | lib/csapi/presence.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/csapi/presence.cpp b/lib/csapi/presence.cpp index ca4c850e..7aba8b61 100644 --- a/lib/csapi/presence.cpp +++ b/lib/csapi/presence.cpp @@ -125,11 +125,7 @@ Events&& GetPresenceForListJob::data() BaseJob::Status GetPresenceForListJob::parseJson(const QJsonDocument& data) { - auto json = data.object(); - if (!json.contains("data"_ls)) - return { JsonParseError, - "The key 'data' not found in the response" }; - d->data = fromJson<Events>(json.value("data"_ls)); + d->data = fromJson<Events>(data); return Success; } |