aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/generated/notifications.cpp2
-rw-r--r--lib/jobs/generated/notifications.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/jobs/generated/notifications.cpp b/lib/jobs/generated/notifications.cpp
index ffd17b8a..df6b10ba 100644
--- a/lib/jobs/generated/notifications.cpp
+++ b/lib/jobs/generated/notifications.cpp
@@ -21,7 +21,7 @@ namespace QMatrixClient
result.actions =
fromJson<QVector<QJsonObject>>(o.value("actions"));
result.event =
- fromJson<GetNotificationsJob::Event>(o.value("event"));
+ fromJson<EventPtr>(o.value("event"));
result.profileTag =
fromJson<QString>(o.value("profile_tag"));
result.read =
diff --git a/lib/jobs/generated/notifications.h b/lib/jobs/generated/notifications.h
index 72318f69..798b9576 100644
--- a/lib/jobs/generated/notifications.h
+++ b/lib/jobs/generated/notifications.h
@@ -22,12 +22,10 @@ namespace QMatrixClient
public:
// Inner data structures
- using Event = EventPtr;
-
struct Notification
{
QVector<QJsonObject> actions;
- Event event;
+ EventPtr event;
QString profileTag;
bool read;
QString roomId;