From 5be3dcc9d45d2c52a514b5ebfa691dca9c73b047 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 3 Jun 2018 18:24:48 +0900 Subject: csapi/notifications.*: Use QVariant instead of QJsonObject Thanks to the latest GTAD. QJsonObject wasn't quite correct there. --- lib/csapi/notifications.cpp | 2 +- lib/csapi/notifications.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/csapi') diff --git a/lib/csapi/notifications.cpp b/lib/csapi/notifications.cpp index 9bff072b..9329857d 100644 --- a/lib/csapi/notifications.cpp +++ b/lib/csapi/notifications.cpp @@ -23,7 +23,7 @@ namespace QMatrixClient const auto& _json = jv.toObject(); GetNotificationsJob::Notification result; result.actions = - fromJson>(_json.value("actions")); + fromJson>(_json.value("actions")); result.event = fromJson(_json.value("event")); result.profileTag = diff --git a/lib/csapi/notifications.h b/lib/csapi/notifications.h index 3a603364..094fa3af 100644 --- a/lib/csapi/notifications.h +++ b/lib/csapi/notifications.h @@ -6,10 +6,11 @@ #include "jobs/basejob.h" +#include "events/event.h" #include "converters.h" #include +#include #include -#include "events/event.h" namespace QMatrixClient { @@ -22,7 +23,7 @@ namespace QMatrixClient struct Notification { - QVector actions; + QVector actions; EventPtr event; QString profileTag; bool read; -- cgit v1.2.3