From: Camila Date: Tue, 29 Sep 2020 16:51:48 +0000 (+0200) Subject: Correct the object name returned by the api. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~138^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dc12cdf1968aee1f1cf3eede37ea21e81de0c1fa;p=nextcloud-desktop.git Correct the object name returned by the api. The id was always 0 so no new systray messages were displayed. Signed-off-by: Camila --- diff --git a/src/gui/tray/NotificationHandler.cpp b/src/gui/tray/NotificationHandler.cpp index 70401b21f..445d0a88a 100644 --- a/src/gui/tray/NotificationHandler.cpp +++ b/src/gui/tray/NotificationHandler.cpp @@ -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(); } -} \ No newline at end of file +}