Correct the object name returned by the api.

The id was always 0 so no new systray messages were displayed.

Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
Camila 2020-09-29 18:51:48 +02:00
parent d2eb24a9a8
commit dc12cdf196
No known key found for this signature in database
GPG Key ID: 7A4A6121E88E2AD4

View File

@ -92,7 +92,7 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
auto json = element.toObject();
a._type = Activity::NotificationType;
a._accName = ai->account()->displayName();
a._id = json.value("activity_id").toInt();
a._id = json.value("notification_id").toInt();
//need to know, specially for remote_share
a._objectType = json.value("object_type").toString();
@ -148,4 +148,4 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
deleteLater();
}
}
}