mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
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:
parent
d2eb24a9a8
commit
dc12cdf196
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user